Make sshing dependent on our secrets
This commit is contained in:
parent
9dd48160e8
commit
7b3df9ca41
1 changed files with 10 additions and 0 deletions
10
bin/a-ssh
Executable file
10
bin/a-ssh
Executable file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/zsh
|
||||||
|
|
||||||
|
script_dir=$(cd "$(dirname "$0")" && pwd)
|
||||||
|
declare -x ALMANACK_ROOT=$(dirname $script_dir)
|
||||||
|
|
||||||
|
a-pass() {
|
||||||
|
PASSWORD_STORE_DIR=$ALMANACK_ROOT/secrets/ env pass $*
|
||||||
|
}
|
||||||
|
|
||||||
|
ssh -F =(a-pass ssh/config) $*
|
||||||
Loading…
Reference in a new issue