Found this on the learn linux youtube channel

How would you like a ls directory listing everytime you change directories? ADD the following to your .bashrc

# Show a directory listing when using 'cd'

function cd() { new_directory="$*"; if [ $# -eq 0 ]; then new_directory=${HOME}; fi; builtin cd "${new_directory}" && /bin/ls -lhF --time-style=long-iso --color=auto --ignore=lost+found }

another useful one to add to .bashrc

This one lets you use an extract command to extract files from various archive types.

function extract () { if [ -f $1 ] ; then case $1 in *.tar.bz2) tar xjvf $1 ;; *.tar.gz) tar xzvf $1 ;; *.tar.xz) tar xvf $1 ;; *.bz2) bzip2 -d $1 ;; *.rar) unrar2dir $1 ;; *.gz) gunzip $1 ;; *.tar) tar xf $1 ;; *.tbz2) tar xjf $1 ;; *.tgz) tar xzf $1 ;; *.zip) unzip2dir $1 ;; *.Z) uncompress $1 ;; *.7z) 7z x $1 ;; *.ace) unace x $1 ;; *) echo "'$1' cannot be extracted via extract()" ;; esac else echo "'$1' is not a valid file" fi }