My shell is zsh
and OS is Ubuntu 13.04
I need to add directory to $PATH to make it work in following places:
- In graphical environment(Unity) (such as startup applications,
gmrun
program that runs by shortcut (it's basically as "Run command" on alt+f2) - In terminal in Unity
- In terminal on Ctrl + Alt + F1
I've added it in .profile
and it works for first two points, but not the last. I know I may add it to .zshrc
but In this case it will be wrote in tow places (violates DRY) and in the case of terminal inside unity it'll be two times in $PATH
(I don't think it's very bad but it's at least not pretty)
If I add it only to .zshrc
it works only for second and third cases(obviously)
What can I do?