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


#
#   grep
#

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


#
#   file and filesystem information
#

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

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

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


#
#   networking
#

# I often use it for just *viewing* things, which works fine without root
alias ifconfig='/sbin/ifconfig'

alias host='host -a'
alias mx='mx -aZ'

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


#
#   various other stuff
#

alias cal='cal -m'
alias cp='cp -i'
alias fbi='fbi -readahead'
alias feh='feh --quiet'

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

# This is an export, so that also man() and other apps using less as pager get it
# clear-screen = much faster scrolling on ttys
# RAW-CONTROL-CHARS = Don't produce crap if the file contains ANSI color sequences
export LESS='--silent --no-init --clear-screen --RAW-CONTROL-CHARS --quit-if-one-screen --ignore-case --tabs=5'

# Show manuals in all sections
alias man='man -a'

alias mv='mv -i'

# BSD style
alias ps='ps aux'

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

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

# smooth scrolling
alias xload='xload -jumpscroll 1'