summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Vargas <fvargasx@gmail.com>2016-06-16 12:56:34 -0700
committerMarc Cornellà <marc.cornella@live.com>2016-06-16 21:56:34 +0200
commit551abfcbb48a0c001eadef80abc3276af4e9ad26 (patch)
treeac12dd2a36d4420bfc236bf677cfbe857e904434
parent46c0d9590d38f98ab7f69f48c067715077fe49cb (diff)
downloadzsh-551abfcbb48a0c001eadef80abc3276af4e9ad26.tar.gz
zsh-551abfcbb48a0c001eadef80abc3276af4e9ad26.tar.bz2
zsh-551abfcbb48a0c001eadef80abc3276af4e9ad26.zip
Remove undesirable hardcoding of PATH into zshrc (#4925)
See robbyrussell@b67961d
-rw-r--r--templates/zshrc.zsh-template2
-rwxr-xr-xtools/install.sh6
2 files changed, 1 insertions, 7 deletions
diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template
index 44e8b0d1b..632490132 100644
--- a/templates/zshrc.zsh-template
+++ b/templates/zshrc.zsh-template
@@ -53,7 +53,7 @@ plugins=(git)
# User configuration
-export PATH=$HOME/bin:/usr/local/bin:$PATH
+# export PATH="/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
# export MANPATH="/usr/local/man:$MANPATH"
source $ZSH/oh-my-zsh.sh
diff --git a/tools/install.sh b/tools/install.sh
index 199d29419..3f4de8681 100755
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -80,12 +80,6 @@ main() {
" ~/.zshrc > ~/.zshrc-omztemp
mv -f ~/.zshrc-omztemp ~/.zshrc
- printf "${BLUE}Copying your current PATH and adding it to the end of ~/.zshrc for you.${NORMAL}\n"
- sed "/export PATH=/ c\\
- export PATH=\"$PATH\"
- " ~/.zshrc > ~/.zshrc-omztemp
- mv -f ~/.zshrc-omztemp ~/.zshrc
-
# If this user's login shell is not already "zsh", attempt to switch.
TEST_CURRENT_SHELL=$(expr "$SHELL" : '.*/\(.*\)')
if [ "$TEST_CURRENT_SHELL" != "zsh" ]; then