git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.bash/aliases.bash5
-rw-r--r--.bash/vars.bash6
2 files changed, 10 insertions, 1 deletions
diff --git a/.bash/aliases.bash b/.bash/aliases.bash
index de3d616..0086054 100644
--- a/.bash/aliases.bash
+++ b/.bash/aliases.bash
@@ -60,6 +60,11 @@ alias startxmonad="sxs xmonad"
alias saa="source ~/.ssh/sshenv;ssh-add >/dev/null 2>&1;ssh-add -l"
alias sshr='ssh -o StrictHostKeyChecking=no'
alias sshk='ssh -o PasswordAuthentication=yes -o PreferredAuthentications=keyboard-interactive,password -o PubkeyAuthentication=no'
+function add-sshagent-init {
+ for KEY in "${SSHKEYS[@]}";do
+ ssh-add "$i"
+ done
+}
# ----- FS ----- #
xstat() {
for target in "${@}";do
diff --git a/.bash/vars.bash b/.bash/vars.bash
index dddc831..ac56a6d 100644
--- a/.bash/vars.bash
+++ b/.bash/vars.bash
@@ -5,7 +5,11 @@
export BSNAME="CHANGEME"
# default screenshot target. Feel free to override in .local.
export SCRSHDIR="${HOME}/Pictures"
-# variable for SSH environment file
+# variables for SSH, override in .local:
+export SSHHOME="${HOME}/.ssh"
+# 1. key files, array:
+SSHKEYS=( "${SSHHOME}/id_ed25519" "${SSHHOME}/id_rsa" )
+# 2. SSH environment file
export SSHENVFILE="${HOME}/.ssh/sshenv"
# ----- SHELL ----- #