forked from viroulep/configFiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zsh_aliases
85 lines (67 loc) · 1.68 KB
/
.zsh_aliases
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Pour changer de repertoire rapidement
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ......='cd ../../../../..'
alias .......='cd ../../../../../..'
#Infos des batteries
alias batinfo='_display_power_status'
#Infos des batteries
alias suspendtoram='_do_suspend_ram'
#Screen saver
alias screensaver='_screensaver'
#Pas de screen saver (pour les films etc)
alias noscreensaver='_disable_screensaver'
#Rainbow Unicorn
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
#Plus ou moins deprecated
alias s='scite'
alias sls='_run_SciTE'
#ls stuff
alias l='ls'
alias ll='ls -l'
alias la='ls -A'
alias lal='ls -al'
#Évite les accidents
alias rm='rm -i'
# à tester :)
alias rm='mv \!* /tmp/wastebasket'
# ça marchera pas. http://zsh.sourceforge.net/Intro/intro_8.html#SEC8
#Git stuff
alias gis='git status'
alias gil='git log'
alias gip='git pull'
alias gipu='git push'
alias gic='git commit'
alias gich='git checkout'
alias gib='git branch'
#Ouverture auto en tapant ./toto.ext
alias -s txt="less"
alias -s pdf="zathura"
alias -s png="geeqie"
alias -s h="vim"
alias -s c="vim"
alias -s cpp="vim"
#Easy pipe
alias -g T="| tail"
alias -g G="| grep"
alias -g H="| head"
alias -g L="| less"
#Vim stuff
alias vim="vim -i NONE"
alias v="vim"
alias vls="_run_vim"
#Parce que calc > bc
alias calc="bc -l"
#Évite certaines correction désagréables de zsh
alias apt-get="nocorrect apt-get"
alias sudo="nocorrect sudo"
alias man="nocorrect man"
#Restore la derniere session si sauvegardée
alias dwb="dwb -r"
#Change le titre de la fenêtre
alias vimpc="wname vimpc; vimpc"
alias mutt="wname mutt; mutt"