3 ms·
These sorts of things are really useful and it's one of the reasons I think everyone should keep their dotfiles on github or similar so they can share their lit
by gpspake 5y ago
These sorts of things are really useful and it's one of the reasons I think everyone should keep their dotfiles on github or similar so they can share their little tricks. Mine are just a compilation of stuff like this that I've picked up from other people over the years. (I even try to put attributions in there if I got them from friends)
My favorite one is c to change to my ~/code directory with tab completion from anywhere.
So I can type c pr<tab><enter> to cd in to ~/code/project from anywhere.
(Full disclosure This is zsh and I don't have a bash equivalent for that)
Another thing I can't live without and some people hate is ls -la anytime I cd in to a directory. In a gui, I get that visual feedback immediately and it's usually the first thing I type when I land anyway so I just have a function for it https://github.com/gpspake/dotfiles/blob/master/zsh/gpspake/gpspake.plugin.zsh#L28 https://github.com/gpspake/dotfiles/blob/master/zsh/gpspake/...