4 ms·
My company is fond of putting source code under very deep directory structures, so I quite like Z: https://github.com/agkozak/zsh-z https://github.com/agkozak/z
by closeparen 6y ago
My company is fond of putting source code under very deep directory structures, so I quite like Z: https://github.com/agkozak/zsh-z https://github.com/agkozak/zsh-z
Not ZSH specific, but it's also handy to load project-specific environment variables automatically on entering directories: https://direnv.net/ https://direnv.net/.
- climb_stealth 6y agoI very much agree on z. Also fzf [0]. It is super fast and makes a huge difference when working in code bases with code 12 levels deep. [0] https://github.com/junegunn/fzf https://github.com/junegunn/fzf
- read_if_gay_ 6y agoAlso recommend the fzf vim extension. I use it to navigate my Vimwiki Zettelkasten.
- cfors 6y agoUsing fzf and ctrl+r for fuzzy finding commands is a godsend. Basically all snippets of code that I ever run are straight from this. Forget how to exactly reset a committed local file that you want to place into another commit? Not something I do everyday, so may require some Googling if I can't remember exactly. What I do know, is that I use something with `git reset`. I ctrl+r and type `git reset` and here is what comes up: > 9488 git reset HEAD^ > 10535* git reset --hard > 10555* git reset HEAD file > 10999* git reset --soft HEAD Oh right, I need to reset the commits and then remove that file from the commit and I can recommit. It is a complete gamechanger.
- toastal 6y agoDirenv has made it a lot easier to source Bash-styled environment variable in a fisd shell and has `use nix` built in for using the Nix package manager for projects and getting a shell environment with all of your local project dependencies.