conf2/zsh/.zshrc.d/alias

63 lines
1.9 KiB
Plaintext
Raw Normal View History

2018-06-13 19:38:45 +00:00
############alias perso###################
#set default pager & editor
export PAGER="less -r"
export EDITOR='vim'
#set shortcut directory
alias diskstation='cd /mnt/diskstation'
alias media='cd /mnt/diskstation/media'
alias mediatemp='cd /mnt/diskstation/media/download'
alias incomplete='cd /mnt/diskstation/media/download/incomplete && ls'
alias serie='cd /mnt/diskstation/media/serie'
alias film='cd /mnt/diskstation/media/film'
2018-10-28 11:50:39 +00:00
#set git alias for conf2
alias confpush='git -C ~/conf2 push'
alias confpull='git -C ~/conf2 pull'
alias confstatus='git -C ~/conf2 status'
alias confdiff='git -C ~/conf2 diff master'
alias confcam='git -C ~/conf2 commit -a -m'
2018-06-13 19:38:45 +00:00
#set ssh shortcut
alias diskstation-admin='ssh admin@diskstation -p 1020'
alias diskstation-root='ssh root@diskstation -p 1020'
#set command alias
alias nano='nano -c'
alias rarret='sudo systemctl poweroff'
alias arret='systemctl poweroff'
alias yaourtp='yaourt --pager --color'
alias du='du -h'
alias df='df -h'
alias rr='rm -r'
alias rrf='rm -rf'
#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 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 .'
#synchro music directory for laptop
alias update-music-folder='rsync-update /mnt/diskstation/music/ ~/Music/'
#alias cache pacman
function syncpacmancache (){
sudo rsync -avzu --progress -h vincent@$1:/var/cache/pacman/pkg/ /var/cache/pacman/pkg/
}
alias pacmanclean='sudo paccache -r &&sudo paccache -ruk0'
#other alias
alias meteo='curl wttr.in/mentque-nortbecourt'
eval $(thefuck --alias)
2018-08-17 18:44:31 +00:00
alias chaineTV='python ~/Documents/python/chainetv/chaineTV.py'
2018-06-13 19:38:45 +00:00
2018-09-17 18:52:02 +00:00
#CLI Improved
if [ -f `which bat` ]; then
alias cat='bat'
fi
2018-09-17 19:07:08 +00:00
if [ -f `which tldr` ]; then
alias shortman='tldr'
fi