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

alias cp='cp -i'

# The free/used/total space of encfs type filesystems is broken here
linux: alias df='df --human-readable --local --exclude-type=fuse.encfs' || alias df='df -hl'

linux: alias du='du --human-readable --summarize --dereference-args' || alias du='du -sh'

alias feh='feh --quiet'

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

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

linux: alias grep='grep --color=auto'

alias host='host -a'

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

# 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 --clear-screen --RAW-CONTROL-CHARS --quit-if-one-screen --ignore-case --tabs=5'

# classify = "/" after dirs, "*" after executables etc
linux: alias ls='ls --color=auto --classify --human-readable' || alias ls='ls -Fh'

# Somehow folllowing the 'learn something new every day' ;-)
linux: alias man='man --all' || alias man='man -a'

# Useful on sshfs or similar
alias mplayer='mplayer -cache 6000 -cache-min 50'

alias mv='mv -i'

alias mx='mx -aZ'

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

# BSD style
alias ps='ps aux'

# use unicode, reattach anyway
alias screen='screen -DUR'

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