Not ZSH specific, but it's also handy to load project-specific environment variables automatically on entering directories: https://direnv.net/.
Not ZSH specific, but it's also handy to load project-specific environment variables automatically on entering directories: https://direnv.net/.
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.