summaryrefslogtreecommitdiff
path: root/etc/aliases/short
blob: bff06c96d83a9108ad55a36d8b40aa2fd526b476 (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
## 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'

alias lasth='last | head -$((LINES-1))'

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

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

# File listings
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'

## Getränke
alias mate='decrement ~/stuff/$(cat ~/var/tmp/.actual-location)/mateguthaben'