Hacker News new | ask | show | jobs
by hansschouten 1405 days ago
I often type ls after cd and even if I know the folder contents I don't mind seeing it again. To automatically ls after each cd command add this to ~/bash_profile

[ -z "$PS1" ] && return function cd { builtin cd "$@" && ls }