add exi function
This commit is contained in:
parent
16fa393488
commit
6cf67d13b7
@ -33,9 +33,9 @@ alias du='du -h'
|
|||||||
alias df='df -h'
|
alias df='df -h'
|
||||||
alias rr='rm -r'
|
alias rr='rm -r'
|
||||||
alias rrf='rm -rf'
|
alias rrf='rm -rf'
|
||||||
#set commande filebot
|
#set commande filebot
|
||||||
alias trieserie='filebot --format "/mnt/diskstation/media/serie/{n}/Saison {s}/{e.pad(2)}-{t}/{s.pad(2)}x{e.pad(2)}-{t}" --db thetvdb -non-strict --lang fr -rename -no-xattr'
|
alias trieserie='filebot --format "/mnt/diskstation/media/serie/{n}/Saison {s}/{e.pad(2)}-{t}/{s.pad(2)}x{e.pad(2)}-{t}" --db thetvdb -non-strict --lang fr -rename -no-xattr'
|
||||||
alias triefilm='filebot --format "/mnt/diskstation/media/film/{n} ({y})/{n}" --db themoviedb --lang fr -rename -non-strict -no-xattr'
|
alias triefilm='filebot --format "/mnt/diskstation/media/film/{n} ({y})/{n}" --db themoviedb --lang fr -rename -non-strict -no-xattr'
|
||||||
alias cleaner='filebot -script fn:cleaner .'
|
alias cleaner='filebot -script fn:cleaner .'
|
||||||
|
|
||||||
#synchro music directory for laptop
|
#synchro music directory for laptop
|
||||||
@ -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