551abfcbb48a0c001eadef80abc3276af4e9ad26
- Author
- Felipe Vargas <fvargasx@gmail.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Remove undesirable hardcoding of PATH into zshrc (#4925)
See robbyrussell@b67961d
Diff
1diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template
2index 44e8b0d1bdf18a17a8b494a2219e54c33fe294ea..632490132d3244b675c1903ddd5b4ed712429370 100644
3--- a/templates/zshrc.zsh-template
4+++ b/templates/zshrc.zsh-template
5@@ -53,7 +53,7 @@ plugins=(git)
6
7 # User configuration
8
9-export PATH=$HOME/bin:/usr/local/bin:$PATH
10+# export PATH="/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
11 # export MANPATH="/usr/local/man:$MANPATH"
12
13 source $ZSH/oh-my-zsh.sh
14diff --git a/tools/install.sh b/tools/install.sh
15index 199d29419dd586a6455957052e77777345c90fbd..3f4de86812fc82f7374515c566b4d65cbeb25244 100755
16--- a/tools/install.sh
17+++ b/tools/install.sh
18@@ -80,12 +80,6 @@ main() {
19 " ~/.zshrc > ~/.zshrc-omztemp
20 mv -f ~/.zshrc-omztemp ~/.zshrc
21
22- printf "${BLUE}Copying your current PATH and adding it to the end of ~/.zshrc for you.${NORMAL}\n"
23- sed "/export PATH=/ c\\
24- export PATH=\"$PATH\"
25- " ~/.zshrc > ~/.zshrc-omztemp
26- mv -f ~/.zshrc-omztemp ~/.zshrc
27-
28 # If this user's login shell is not already "zsh", attempt to switch.
29 TEST_CURRENT_SHELL=$(expr "$SHELL" : '.*/\(.*\)')
30 if [ "$TEST_CURRENT_SHELL" != "zsh" ]; then