# See either "man alias" or "man bash_builtins" for
# further explanation of the shell's alias mechanism.

# You may uncomment the following lines if you want `ls' to be colorized:
# export LS_OPTIONS='--color=auto'
# eval "`dircolors`"
# alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'

# Some random aliases:

alias startx='startx 2> ~/.startx.err 1> ~/.startx.out &'
alias tail='tail --lines 24'
alias xbig='/usr/bin/find . -xdev -size +1000000c -type f -exec ls -s {} \; | sort -n | tail -n 15'
alias x24h='/usr/bin/find . -xdev -mtime 0 -type f -exec ls -l {} \; | sort -n | tail -n 15'
alias xcore='/usr/bin/find . -xdev -name core -type f -exec ls -l {} \;'
alias xlsdir='/usr/bin/find . -xdev -size +0c -type f -exec ls -l {} \;'
alias df='/bin/df -x tmpfs -x devtmpfs'

alias v='/bin/vdir'
alias ll='/bin/ls -l'
alias xday='/bin/date +%Y%m%d'

# Some things don't function properly if TERM=emacs

if [ `echo $TERM` != emacs ] && [ `echo $TERM` != dumb ]; then
    alias man='man -P less'
    alias ls='/bin/ls'
    alias v='/bin/vdir'
else
    alias v='/bin/ls -l'
    alias man='echo -e "Please use \"M-x manual-entry RET manpage\"\nto read the manual page for"'
fi
