This commit is contained in:
parent
15e4bc7e5d
commit
2ae6eaa36a
1 changed files with 6 additions and 8 deletions
14
.bash_extra
14
.bash_extra
|
@ -21,20 +21,18 @@ PATH=$PATH:"${HOME}/dotfiles/scripts"
|
||||||
|
|
||||||
## check interactive shell https://unix.stackexchange.com/questions/26676/how-to-check-if-a-shell-is-login-interactive-batch
|
## check interactive shell https://unix.stackexchange.com/questions/26676/how-to-check-if-a-shell-is-login-interactive-batch
|
||||||
if [[ $- == *i* ]] ; then
|
if [[ $- == *i* ]] ; then
|
||||||
### git-bash
|
|
||||||
if [ "$HOSTNAME" = lzeorpt001 ]; then
|
|
||||||
source /usr/share/git-core/contrib/completion/git-prompt.sh
|
|
||||||
fi
|
|
||||||
### root alias
|
### root alias
|
||||||
alias root='sudo -H -u root /usr/bin/sudo2uls'
|
alias root='sudo -H -u root /usr/bin/sudo2uls'
|
||||||
|
if [ "$HOSTNAME" = lzeorpt001 ]; then
|
||||||
|
### git-bash
|
||||||
|
source /usr/share/git-core/contrib/completion/git-prompt.sh
|
||||||
|
### keychain
|
||||||
|
export GPG_TTY=$(tty)
|
||||||
|
fi
|
||||||
### tmux auto attach
|
### tmux auto attach
|
||||||
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
|
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
|
||||||
tmux attach -t default || tmux new -s default
|
tmux attach -t default || tmux new -s default
|
||||||
fi
|
fi
|
||||||
### keychain
|
|
||||||
if [ "$HOSTNAME" = lzeorpt001 ]; then
|
|
||||||
export GPG_TTY=$(tty)
|
|
||||||
fi
|
|
||||||
if [ "$(hostname -s)" == "lzeorpt001" ] || [ "$(hostname -s)" == "lbdlspa001" ]; then
|
if [ "$(hostname -s)" == "lzeorpt001" ] || [ "$(hostname -s)" == "lbdlspa001" ]; then
|
||||||
eval $(keychain -q --eval --timeout 60 --agents ssh,gpg)
|
eval $(keychain -q --eval --timeout 60 --agents ssh,gpg)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue