5 ms·
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 somew
by jgross206 13y 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.