summaryrefslogtreecommitdiff
path: root/etc/alias/short
blob: 164b0ac4f7b126d4493153cf6b85ae57aaedf8ec (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
## 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 **/*;'

alias dua='du --apparent-size'

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

## Git
if check_com -c git; then
	alias gita='git add'
	alias gitc='git commit -v'
	alias gitd='git diff --color'
	alias gitdc='gitd --cached'
	alias gitf='git pull'
	alias gitl='git log'
	alias gitp='git push'
	alias gits='git status'
	alias grep-nogit='grep --exclude-dir=.git -r'
	alias git-serve='git-daemon --verbose --export-all --base-path=. .'
fi

for i in ~/var/gtd/*(.N); {
	alias gtd-${i:t}='todo --database '$i
}

## Mercurial (hg)
if check_com -c hg; then
	alias hga='hg add'
	alias hgar='hg addremove'
	alias hgc='hg commit'
	alias hgd='hg diff | less'
	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'
fi

# File listings
alias lsb='tar tvjf'
alias lsgz='tar tvzf'
alias lsi='feh --list'
alias lst='tar tvf'
alias lsz='unzip -l'

alias nb='newsbeuter'
alias nbr='newsbeuter -r'

alias rd='rmdir'

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

## Suspend
salias s2d='s2disk'
salias s2r='s2ram -f'