diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-12 10:43:52 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-12 10:43:56 +0100 |
commit | 2ea9d99d207cc1d0263767fe0b006460915f4da0 (patch) | |
tree | cd76978322faab21e7da05ca6e78b428087df880 /etc/aliases/default | |
parent | 21d19830698e79cc46f4222ff51d985c362e9686 (diff) |
Moved aliases directory out of the core zshrc
Diffstat (limited to 'etc/aliases/default')
-rw-r--r-- | etc/aliases/default | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/etc/aliases/default b/etc/aliases/default new file mode 100644 index 0000000..6165ed6 --- /dev/null +++ b/etc/aliases/default @@ -0,0 +1,86 @@ +## 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 -Fh --color=auto' || + alias ls='ls -Fh' + + +# +# 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 +linux: salias netstat='netstat --program --all --tcp --extend' || + salias netstat='netstat -atp tcp' + + +# +# various other stuff +# + +alias cal='cal -m' +alias cp='cp -i' +alias fbi='fbi -readahead' +alias feh='feh --quiet --verbose' + +# 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' + +# alias expansion with sudo +alias sudo='sudo ' + +alias tilp='gksudo "tilp --calc=ti84+ --cable=DirectLink"' + +# Don't collapse trees +alias todo='noglob todo -f +children' + +# smooth scrolling +alias xload='xload -jumpscroll 1' |