Useful Bash functions
cdd: cd and list the files.
function cdd(){ cd $* ls --color}
changelog: get the change log for a program
changelog() {
log=/usr/share/doc/"$*"/changelog*
if [ -r $log ]; then
less $log
unset log
else
log=/usr/share/doc/"$*"/CHANGELOG*
if [ -r $log ]; then
less $log
fi
fi
}
mkdircd: make a directory and move in.
function mkdircd() {
mkdir $* cd ${!#}
}