cd is from mars, ls is from venus
Enough people has posted their latest history meme results. It's time to draw some obvious conclusions:
- The top two spot in the listings usually belong to cd and ls
- The world is divided into two camps: The "cd" camp includes those who has more "cd"s than "ls"s in their history; and the "ls" camp
- I'm in the "ls" camp. The camp of over cautious developers who always issue a "ls" command after "cd"-ing into a different directory
Which camp are you in?
How can you "cd" camp people explain yourselves? :)
Re: cd is from mars, ls is from venus
My meme is harder to calculate and apply to this, since I use screen and several shells each dedicated to different things. I end up with one shell that's full of "vi" and "fg" and another with a lot of perl one liners...
From experience, though, I know I tend to do cd and ls together as a reflex, even when I know what's in the directory. I've even caught myself doing an "ls" after an interruption, just as a way to mentally get back in the groove, even though I knew perfectly well what files were in the directory.
But here's an interesting point: there's a third camp. When I was working at a certain company, all of my colleagues avoided cd'ing into directories whenever possible. They relied on zsh and using history searches, so they'd almost always stay in the top level of the project they were working on, so that all of the commands in their history would could be re-used without modification. In fact they tended to spend a lot of time in the shell searching for and re-using historied commands.
So it was the extreme no-ls, no-cd camp: the path name camp. It was actually kind of brilliant for what we were working on.