fix if
This commit is contained in:
parent
28ea93b9e5
commit
221f5a74de
1 changed files with 2 additions and 3 deletions
|
@ -21,15 +21,14 @@ if [[ $- == *i* ]] ; then
|
|||
source /usr/share/git-core/contrib/completion/git-prompt.sh
|
||||
### keychain
|
||||
export GPG_TTY=$(tty)
|
||||
fi
|
||||
if [ "$(hostname -s)" == "lzeorpt001" ] ; then
|
||||
# git commit usw.
|
||||
export EDITOR="/usr/bin/vim"
|
||||
fi
|
||||
### tmux auto attach
|
||||
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
|
||||
tmux attach -t default || tmux new -s default
|
||||
fi
|
||||
if [ "$(hostname -s)" == "lzeorpt001" ] || [ "$(hostname -s)" == "lbdlspa001" ]; then
|
||||
if [ "$HOSTNAME" == "lzeorpt001" ] || [ "$HOSTNAME" == "lbdlspa001" ]; then
|
||||
eval $(keychain -q --eval --timeout 60 --agents ssh,gpg)
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue