Wheb i boot up, i still have to ^R to cd to the right location, and then ^R again to "compile" etc.
I'm looking forward to trying this out, direnv (mentionned above) seems like an even better idea.
Wheb i boot up, i still have to ^R to cd to the right location, and then ^R again to "compile" etc.
I'm looking forward to trying this out, direnv (mentionned above) seems like an even better idea.
So first of all, I have a bash function declared in my bashrc which takes one argument -- the domain -- and sets a few evironment variables such as GIT_AUTHOR_EMAIL and GIT_COMMITER_EMAIL.
Next I have one two-letter alias and three three-letter aliases which all cd to their respective paths and call the function to set the env vars.
Finally, I have two-letter aliases to git add, git diff, git commit, git push and so on.
Dead simple and works great. All I need is my bashrc.
Hope you could learn something, because that's the reason I'm writing here.