-
-
Save scottstanfield/f82a344f42df3f4b068e8c0e3554d569 to your computer and use it in GitHub Desktop.
Revisions
-
ekreutz revised this gist
Jun 7, 2019 . 1 changed file with 2 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,16 +7,12 @@ If using bash, edit `/etc/profile` and add one line. (For `zsh`, edit `/etc/zprofile`) ``` ... if [ -x /usr/libexec/path_helper ]; then PATH="" # <- ADD THIS LINE (right before path_helper call) eval `/usr/libexec/path_helper -s` fi ... ``` You're welcome :) -
ekreutz revised this gist
Jun 7, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ ## Solution If using bash, edit `/etc/profile` and add one line. (For `zsh`, edit `/etc/zprofile`) ``` # System-wide .profile for sh(1) -
ekreutz created this gist
Apr 29, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ # Fix `tmux` messing with `conda` **Problem:** When running a conda environment and opening tmux on macOS, a utility called `path_helper` is run *again*. Essentially, the shell is initialized twice which messes up the `${PATH}` so that the wrong Python version shows up within `tmux`. ## Solution Edit `/etc/profile` and add one line: ``` # System-wide .profile for sh(1) if [ -x /usr/libexec/path_helper ]; then PATH="" # <- ADD THIS LINE (right before path_helper call) eval `/usr/libexec/path_helper -s` fi if [ "${BASH-no}" != "no" ]; then [ -r /etc/bashrc ] && . /etc/bashrc fi ``` You're welcome :)