dotfiles/zsh/custom/aliases.zsh

60 lines
1.5 KiB
Bash
Raw Normal View History

2018-06-27 15:06:19 +00:00
# .oh-my-zsh/custom/aliases.zsh
#
# Define some personnal aliases
#
# 03/03/2014
# Jeff LANCE <jeff.lance@mala.fr>
#
# Net commands
alias iptables="sudo iptables $1"
#alias netstat="sudo netstat $1"
alias ifconfig="sudo ifconfig $1"
alias ovpn="sudo openvpn $1"
# APT commands
2018-06-29 21:52:03 +00:00
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 agud="sudo apt-get update"
alias agug="sudo apt-get upgrade"
alias aguu="agud && agug"
alias alu="apt list --upgradable"
2018-06-27 15:06:19 +00:00
# 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"
2018-06-29 21:52:03 +00:00
#alias khardsyn="vdirsyncer -vdebug discover $1 && vdirsyncer -vdebug sync $1"
2018-06-27 15:06:19 +00:00
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"
2018-07-02 21:03:41 +00:00
hash -d vid="$HOME/Vidéos"
hash -d dot="$HOME/Dotfiles"
2018-06-27 15:06:19 +00:00
# Editors
2018-07-05 09:14:03 +00:00
#alias vim="nvim"
2018-06-27 15:06:19 +00:00
alias ec="emacsclient -t"
alias emacs="emacsclient-oneframe.sh"
2018-08-24 10:28:24 +00:00
alias ltxmk="latexmk $1 && latexmk -c $1"