3 ms·
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_profi
by hansschouten 4y 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
}