# .oh-my-zsh/custom/aliases.zsh # # Define some personnal aliases # # 03/03/2014 # Jeff LANCE # # Net commands alias iptables="sudo iptables $1" alias ip="ip -c $1" alias ifconfig="sudo ifconfig $1" alias ovpn="sudo openvpn $1" # APT commands alias acse="apt-cache search $1" alias acsh="apt-cache show $1" alias agi="sudo apt-get install $1" alias agr="sudo apt-get remove --purge $1" alias agar="sudo apt-get autoremove" alias agac="sudo apt-get autoclean" alias agud="sudo apt-get update" alias agug="sudo apt-get upgrade" alias aguu="agud && agug" alias alu="apt list --upgradable" # Python alias pup="pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U" alias pbp="pip freeze > pip_installed_$(date +%d%m%yT%H%M%S).txti" # Commands utlities #alias rm="trash $1" #alias khardsyn="vdirsyncer -vdebug discover $1 && vdirsyncer -vdebug sync $1" alias scan="clamscan -r $1" # Edit config of zsh, vim, awesome alias zshcfg="vim $HOME/.zshrc" alias zshrld="source $HOME/.zshrc" alias vimrc="vim $HOME/.vimrc" alias awerc="emacs ~dot/awesome/.config/awesome/rc.lua" # Suffixes alias -s jpg='feh -dx' alias -s png='feh -dx' alias -s asy='asy2png' #alias -s svg='firefox' # Directories hash -d crs="$HOME/Cours" hash -d dev="$HOME/Développement" hash -d dld="$HOME/Téléchargements" hash -d doc="$HOME/Documents" hash -d vid="$HOME/Vidéos" hash -d dot="$HOME/Dotfiles" # Editors #alias vim="nvim" alias ec="emacsclient -t" alias emacs="emacsclient-oneframe.sh" alias ltxmk="latexmk $1 && latexmk -c $1" # Other alias open="xdg-open $1" alias youtube-dl="youtube-dl -f best $1"