summaryrefslogtreecommitdiffstats
path: root/.zsh/rc/60aliases
blob: 6aa652d4562b825ee7e3a70fab80eb96589d2f05 (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
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
86
#--------------------
# Aliases
#--------------------
# better ask before we loose data
alias rm='rm -Iv'
alias cp='cp -iv'
alias mv='mv -iv'

# I don't like bytes
alias dum='du -kh --max-depth=2'
alias du='du -kh'
alias dus='du -skh'
alias df='df -kTh'

# function to make ls look nice is below
alias ll='ls'
alias la='ls -a'

alias newpkgb=' cp $HOME/misc/aur/PKGBUILD.proto PKGBUILD'

# well I got used to that name ;)
alias aurball='makepkg --source -f'
alias pkgbuild='makepkg -fc && aurball'
alias pushpkg='cp *.pkg.tar.gz *.src.tar.gz /mnt/mistral/srv/drop'

alias sudo="sudo "    #Sudo wont recognize aliases without this
alias s='sudo'
alias x='x -v'
alias u='upload.sh'
alias mtr='mtr -t'
alias wcl='wc -l'
alias mdstat='cat /proc/mdstat'
alias keymap='setxkbmap de -variant nodeadkeys'

alias pager='${PAGER}'
alias more='${PAGER}'
alias less='${PAGER}'
alias c='${PAGER}'
alias v='vim'
# sudo needs support for aliases!
alias sc='sudo ${PAGER}'
alias sv='sudo vim'

alias ncmpc='ncmpc -c'
alias youtube='youtube-dl -b '

# updating commands can be long...
alias yup='yaourt -Syu --aur'
alias yu='yaourt -Syu'

# can't they make it use sudo on it's own like yaourt?
alias p='sudo powerpill'
alias pa='sudo powerpill -Syu'
alias py='sudo powerpill -S'
alias pacman='sudo pacman-color'

alias su='su -'

alias y='yaourt'
alias ys='yaourt -S'
alias ysb='yaourt -Sb'
alias ysi='yaourt -Si'
alias yr='yaourt -Rs'
alias yrn='yaourt -Rns'
alias yqo='yaourt -Qo'

# too long to remember
alias asciidoc_full='asciidoc -a icons -a toc'

# global aliases work EVERYWHERE
# e.g. dmesg tt
# show last 20 lines of dmesg
alias -g gg='| grep --color'
alias -g eg='| egrep --color'
alias -g tt='| tail -n 20'
# I always hit y instead of | ...
alias -g vv='|'

# who doesn't need pastebins? 
alias -g sp="2>&1 | curl -F 'sprunge=<-' http://sprunge.us"
alias -g pp="2>&1 | wgetpaste -X "

# e.g. "blub.txt" opens the file instead of showing command not found
alias -s txt=mousepad
alias -s jpg=gpicview
alias -s png=gpicview