update exittmux alias

This commit is contained in:
vincent 2022-01-24 21:13:37 +01:00
parent 43d77841b3
commit 964956eba4

View File

@ -69,7 +69,14 @@ alias _='sudo '
alias mpv='gnome-session-inhibit mpv'
#alias sortie de tmux en session ssh
alias exitTmux=''
function exi (){
if [ -n "$TMUX" ]; then
tmux detach -P
else
exit
fi
}
# open a session bitwarden
alias bwsession='export BW_SESSION="$(bw unlock --raw)"'
@ -81,11 +88,3 @@ function removeknowhost (){
sed -i "/^$1/d" ~/.ssh/known_hosts
fi
}
function exi (){
if [ -n "$TMUX" ]; then
tmux detach -P
else
exit
fi
}