summaryrefslogtreecommitdiff
path: root/etc/aliases/default
blob: 85d8c5e68e2cebd03e3cf7581bffc8ccade63a98 (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
## vim:ft=zsh
## Some useful default options
## To evade them, use '=foo' instead of 'foo'


## grep
linux: {
	alias egrep='grep -E --color=auto'
	alias fgrep='grep -F --color=auto'
	alias grep='grep --color=auto'
}


## file and filesystem information
# human-readable sizes, local filesystems only
linux: alias df='df -hl --exclude-type=fuse.encfs' ||
       alias df='df -hl'

# human-readable sizes, summarize, dereference args
linux: alias du='du -shD' ||
       alias du='du -shH'

# human-readable sizes, mark executables with '*' etc.
linux: alias ls='ls -h --color=auto' ||
       alias ls='ls -Fh'

## enable alias expansion
alias exec='exec '
alias sudo='sudo '

## networking
alias mx='mx -aZ'

# Only TCP/TCP6, not sockets and such
linux: salias netstat='netstat --program --all --tcp --extend' ||
       salias netstat='netstat -atp tcp'


# less frequent updates when running ncdu via ssh
[[ -n $SSH_CONNECTION ]] && check_com -c ncdu && alias ncdu='ncdu -q'

alias bc='bc -l'

alias cal='cal -m'
alias fbi='fbi -readahead'

# I keep accidently overwriting files
alias cp='cp -i'
alias mv='mv -i'

# no atime
alias pmount='pmount -A'

# find does globbing itself
alias find='noglob find'

# Show all available manuals (all sections)
alias man='man -a'

# BSD style
alias ps='ps -F'

# use unicode, reattach anyway, resize if neccessary
alias screen='tscreen -ADRUa'

alias tilp='kdesudo "tilp --calc=ti84+ --cable=DirectLink"'

# Don't collapse trees
alias todo='noglob todo -f +children'