Mac OS X keeps its environment in ~/.MacOSX/environment. But if you want to access those variables from the shell, it’s a bit cumbersome to parse this file manually. So here is a little shell loop to do that (tested in zsh and bash):
1 2 3 4 5 6 7 | |
Mac OS X keeps its environment in ~/.MacOSX/environment. But if you want to access those variables from the shell, it’s a bit cumbersome to parse this file manually. So here is a little shell loop to do that (tested in zsh and bash):
1 2 3 4 5 6 7 | |