Path issues with Mac+Screen.
In Mac OSX Leopard, there's a feature where files places in /etc/paths.d/ will have their contents appended to $PATH. But GNU screen doesn't pick up on it, which causes problems for things like git that use it to put their odd installation location in the path.
So, I put something in my .bashrc to manually add them to $PATH. My bashrc is shared across all my machines, so I only do it if the shell is in a screen session and on a Mac:# On mac, there are files in /etc/paths.d/ that contain more paths. Add them manually for screen's benefit. if [[ $IN_SCREEN && $(uname) == 'Darwin' ]]; then export PATH=$PATH:$(cat /etc/paths.d/* | tr \n : | sed 's/:\s*$//') fiIn my .screenrc I set $IN_SCREEN for situations like this:
setenv IN_SCREEN "yes"






Comments [0]