only register ssh alias if 1p utils present

This commit is contained in:
Erin 2023-07-14 15:53:46 -04:00
parent 336b99ac32
commit 72817e0e61

View file

@ -21,8 +21,10 @@ export PATH="$PATH:$HOME/.local/bin/dart-sass"
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
# User program: add 1password SSH utils # User program: add 1password SSH utils
export PATH="$HOME/.1password-ssh-utils/bin:$PATH" if [ -d "$HOME/.1password-ssh-utils/bin" ]; then
alias ssh="op-ssh-fetch -n && ssh" export PATH="$HOME/.1password-ssh-utils/bin:$PATH"
alias ssh="op-ssh-fetch -n && ssh"
fi
# User program: add rbenv # User program: add rbenv
[ -s "~/.rbenv/bin/rbenv" ] && eval "$(~/.rbenv/bin/rbenv init - zsh)" [ -s "~/.rbenv/bin/rbenv" ] && eval "$(~/.rbenv/bin/rbenv init - zsh)"