aboutsummaryrefslogtreecommitdiff
path: root/base/zsh/aliases.zsh
blob: 43a75bc47d78b844013328c05a391b2fc556db05 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# UTILITY
alias ls="ls --group-directories-first --color=auto"
alias less='less -R'
alias grep='grep --color=auto'
alias gdb='gdb -q'
alias ..='cd ../'
alias -- -='cd -'

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

alias duhs="du -sh * | sort -rh"

# Taken from the tmux plugin
alias ta="tmux attach -t"
alias ts="tmux new-session -s"
alias tl="tmux list-sessions"

# 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="nocorrect cp -riv"
alias mkdir="nocorrect mkdir -vp"
alias mv="nocorrect mv -iv"
alias rm="rm -vI"

# GIT
alias gits='git status --short'
#alias gp='git push'
alias gl='git pull'
#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"

# TASKWARRIOR
export TASKBIN="$(builtin which task)"
alias task="bash taskw"

alias whoaminot="echo adam"