From 23c15656346d6da68dc1ab1648a2fe30dc5cc286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Mon, 21 Sep 2020 20:34:28 +0200 Subject: [PATCH] apply identity settings --- functions.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index 50d18a4..50ac40e 100755 --- a/functions.sh +++ b/functions.sh @@ -6,6 +6,7 @@ export TMUX_SESSION_DIRS SETPROXY_CREDS_DIRS KERBEROS_CONFIG_DIRS + cpb() { scp "$1" ${SSH_CLIENT%% *}:~/Work } @@ -682,6 +683,8 @@ utoken () { token () { [ -z "${SSH_ADD_OPTIONS+x}" ] && { SSH_ADD_OPTIONS=${SSH_ADD_DEFAULT_OPTIONS}; export SSH_ADD_OPTIONS; } + echo [ -z "${SSH_IDENTITIES_DIR+x}" ] + [ -z "${SSH_IDENTITIES_DIR+x}" ] && { SSH_IDENTITIES_DIR=${SSH_IDENTITIES_DEFAULT_DIR-${HOME}/.ssh/identities}; export SSH_IDENTITIES_DIR; } local FORCE local ssh_identity FORCE=false @@ -695,7 +698,10 @@ token () { ;; esac identitydir=${SSH_IDENTITIES_DIR}/${ssh_identity} - [ -e "${identitydir}/.config" ] && . "${identitydir}/.config" + echo identitydir: $identitydir + [ -e "${identitydir}/config" ] && echo found "${identitydir}/config" + [ -e "${identitydir}/config" ] && eval $(<"${identitydir}/config") + echo SSH_ADD_OPTIONS: $SSH_ADD_OPTIONS local fingerprints declare -a fingerprints local tokenfingerprint