Hacker News new | ask | show | jobs
by jgross206 4808 days ago
A very, very simple cd "hack" I use is (put this in your .bashrc):

function cd() { builtin cd "$*" && ls }

it automatically runs "ls" every time you cd somewhere. I find when I'm using someone elses box or SSH'd in somewhere it's really annoying not to have it.