This commit is contained in:
Michael Grote 2024-08-15 20:59:01 +02:00
parent 28ea93b9e5
commit 221f5a74de

View file

@ -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