summaryrefslogtreecommitdiff
path: root/etc/alias/short
blob: daf75d8d64e0f862d6c8d09f4214487154928926 (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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
## Short aliases
## vim:ft=zsh

## For Loops

alias allf='for i in *(.);'
alias alld='for i in *(/);'
alias alle='for i in *(*);'
alias alll='for i in *(@);'
alias all='for i in *;'

alias allfr='for i in **/*(.);'
alias alldr='for i in **/*(/);'
alias aller='for i in **/*(*);'
alias alllr='for i in **/*(@);'
alias allr='for i in **/*;'

debian: {
	## Debian package system (aptitude/apt-get, apt-cache, dpkg)

	# Search the packages list
	alias acse='apt-cache search'
	alias afse='apt-file search'
	alias apse='aptitude search'

	# Show package information
	alias acsh='apt-cache show'
	alias afsh='apt-file show'
	alias apsh='aptitude show'
	alias dps='dpkg --status'

	# Update packages list
	alias agu='sudo apt-get update'
	alias apu='sudo aptitude update'

	# Update packages
	alias ags='sudo apt-get upgrade'
	alias agf='sudo apt-get dist-upgrade'
	alias aps='sudo aptitude safe-upgrade'
	alias apf='sudo aptitude full-upgrade'

	# Install packages
	alias agi='sudo apt-get install'
	alias api='sudo aptitude install'
	alias dpi='sudo dpkg --install'

	# Clean packages cache
	alias agc='sudo apt-get clean'
	alias apc='sudo aptitude clean'

	# Remove/Purge packages
	alias agar='sudo apt-get autoremove'
	alias agp='sudo apt-get purge'
	alias agr='sudo apt-get remove'
	alias dpp='sudo dpkg --purge'
	alias dpr='sudo dpkg --remove'


	# Configure packages
	alias dprc='sudo dpkg-reconfigure'

	alias acp='apt-cache policy'
}

## fbi
alias fbif='fbi -a'
alias fbij='fbi -a -u'

## feh
alias fehf='feh -Tfull' # Fullscreen
alias fehfr='feh -Tfull --recursive'
alias fehi='feh .fehindex.jpg'
alias fehj='feh -Tjust' # Screensaver-like
alias fehjr='feh -Tjust --recursive'
for i in {5,10,15,20}; {
	alias fehj$i='feh -Tjust'$i
	alias fehf$i='feh -Tfull'$i
	alias fehjr$i='feh -Tjust'$i' --recursive'
	alias fehfr$i='feh -Tfull'$i' --recursive'
}
alias fehjx='feh -Tjust --slideshow-delay'
alias fehfx='feh -Tjust --slideshow-delay'
alias fehjrx='feh -Tjust --recursive --slideshow-delay'
alias fehfrx='feh -Tfull --recursive --slideshow-delay'
alias feht='feh -Tthumbnail' # List thumbnails

## Git
alias gita='git add'
alias gitc='git commit -m'
#     gitd is a function, see there
alias gitf='git pull'
alias gitl='git log'
alias gitp='git push'
alias gits='git status'
alias git-serve='git-daemon --export-all --base-path=. .'

## Mercurial (hg)
alias hga='hg add'
alias hgar='hg addremove'
alias hgc='hg commit -m'
#     hgd is a function, see there
alias hgf='hg fetch'
alias hgg='hg glog | less'
alias hgh='hg heads'
alias hgi='hg incoming'
alias hgl='hg log | less'
alias hgm='hg merge'
alias hgp='hg push'
alias hgrm='hg remove'
alias hgrv='hg revert'
alias hgs='hg status'
alias hgu='hg update'
alias hgv='hg verify'

# List archive files
alias lsb='tar tvjf'
alias lst='tar tvf'
alias lsz='tar tvzf'

# Automatically upload screenshot plzkthx
alias putscreen='put $(screenshot)'

alias rd='rmdir'

# Useful when a beamer is connected to my laptop
alias rplayer='mplayer -vo x11 -zoom -vf scale=1024:-2'

alias rsync-serve="rsync --daemon --port=10873 --no-detach --config=/dev/stdin --log-file=/dev/stdout -v <<< $'[.]\n\tpath = .\n\tuse chroot = no'"

## Suspend
alias s2d='sudo s2disk'
alias s2r='sudo s2ram -f'

## Snownews
alias sn='snownews'
alias snu='snownews -u'

# start x and log out immediately
alias x='unsetopt bg_nice; startx &! exit'