aboutsummaryrefslogtreecommitdiff
path: root/base/zsh/aliases.zsh
blob: 8784e8682b18a6e23bc529e3c16c3888672f84b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# UTILITY
alias ls="ls --group-directories-first --color=auto"
alias less='less -R'
alias grep='grep --color=auto'
alias ..='cd ../'

alias sudoe="sudo -E"
alias svim="sudo -E vim"
alias svimdiff="sudo -E vimdiff"

alias qr="qrencode -t UTF8"
alias duhs="du -sh * | sort -rh"

# Pour les erreurs de clavier
alias exti=" exit"
alias exxit=" exit"
alias exir=" exit"
alias eit=" exit"

# Suffixes
alias -s pdf='zathura'
alias -s {jpg,png,gif}='feh'
alias -s {wmv,mp4,avi,flv,mkv,mp3,ogg,flac,wav}='mplayer'

# SAFETY
alias cp="cp -i"
alias mv="mv -i"

# GIT
alias gits='git status --short'
alias gp='git push'
alias ga='git add'
alias gco='git checkout'
alias gwc='git whatchanged -p --abbrev-commit --pretty=medium'

# POWER
alias reboot="systemctl reboot"
alias shutdown="systemctl poweroff"
alias poweroff="systemctl poweroff"