add exi function
This commit is contained in:
parent
16fa393488
commit
6cf67d13b7
@ -69,7 +69,7 @@ alias _='sudo '
|
|||||||
alias mpv='gnome-session-inhibit mpv'
|
alias mpv='gnome-session-inhibit mpv'
|
||||||
|
|
||||||
#alias sortie de tmux en session ssh
|
#alias sortie de tmux en session ssh
|
||||||
alias exitTmux='tmux detach -P'
|
alias exitTmux=''
|
||||||
|
|
||||||
# open a session bitwarden
|
# open a session bitwarden
|
||||||
alias bwsession='export BW_SESSION="$(bw unlock --raw)"'
|
alias bwsession='export BW_SESSION="$(bw unlock --raw)"'
|
||||||
@ -81,3 +81,11 @@ function removeknowhost (){
|
|||||||
sed -i "/^$1/d" ~/.ssh/known_hosts
|
sed -i "/^$1/d" ~/.ssh/known_hosts
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function exi (){
|
||||||
|
if [ -n "$TMUX" ]; then
|
||||||
|
tmux detach -P
|
||||||
|
else
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user