Skip to content


Fixed broken path substitution #2

merged 1 commit into from

2 participants


I think your path substitution is broken. The trailing question mark caused the first following slash to be removed from the path. With your substitution, my git path was broken since it was missing the first slash:

After removing the question mark from the regex, it works fine for me again:

@swaroopch swaroopch merged commit 3441121 into swaroopch:master

Thanks! Merged :)


You're welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 7, 2012
  1. @nwinkler
Showing with 2 additions and 2 deletions.
  1. +2 −2 template/my_bash_profile.bash
4 template/my_bash_profile.bash
@@ -78,8 +78,8 @@ if [[ "$OS" == "mac" ]]
# brew doctor
- export PATH="${PATH/\/usr\/local\/bin:?/}" # Remove directory from PATH
- export PATH="${PATH/\/usr\/local\/sbin:?/}" # Remove directory from PATH
+ export PATH="${PATH/\/usr\/local\/bin:/}" # Remove directory from PATH
+ export PATH="${PATH/\/usr\/local\/sbin:/}" # Remove directory from PATH
# Add to the head of the PATH
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
Something went wrong with that request. Please try again.