add macbook vim/zsh initial
Change-Id: I3e492fecfb97756ab0f5d41bd6931cdfabfd51a2
This commit is contained in:
13
.zsh.d/20-ssh.zsh
Normal file
13
.zsh.d/20-ssh.zsh
Normal file
@@ -0,0 +1,13 @@
|
||||
PWDID=6731738634759616518
|
||||
BID=snarbutas@BOLCOM.NET
|
||||
function ssh() {
|
||||
if ! kswitch -p "$BID"; then
|
||||
lpass show --password "$PWDID" | kinit --password-file=STDIN "$BID"
|
||||
elif klist -l | grep "*"|grep Expired; then
|
||||
lpass show --password "$PWDID" | kinit --password-file=STDIN "$BID"
|
||||
fi
|
||||
eval TERM=screen `/usr/bin/which ssh` $*
|
||||
}
|
||||
decrypt () {
|
||||
ssh -qtt shd-puppet-server-001.bolcom.net "sudo /opt/puppetlabs/bin/puppetserver ruby /var/lib/puppetserver/jruby-gems/gems/hiera-eyaml-2.1.0/bin/eyaml decrypt -s "${1}" 2>/dev/null"
|
||||
}
|
||||
Reference in New Issue
Block a user