0d352109e97be4c86bf28eca84c8a177148ae762

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #1087 from avit/install-template

Add configuration placeholders to installer template

Diff

 1diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template
 2index c175c5811475bc53795feaf0a9d7ce7f59ff57c3..b2cad20e8228ab5be3e774abada1d07b265d0747 100644
 3--- a/templates/zshrc.zsh-template
 4+++ b/templates/zshrc.zsh-template
 5@@ -49,4 +49,21 @@ plugins=(git)
 6 
 7 source $ZSH/oh-my-zsh.sh
 8 
 9-# Customize to your needs...
10+# User configuration
11+
12+export PATH=$HOME/bin:/usr/local/bin:$PATH
13+# export MANPATH="/usr/local/man:$MANPATH"
14+
15+# # Preferred editor for local and remote sessions
16+# if [[ -n $SSH_CONNECTION ]]; then
17+#   export EDITOR='vim'
18+# else
19+#   export EDITOR='mvim'
20+# fi
21+
22+# Compilation flags
23+# export ARCHFLAGS="-arch x86_64"
24+
25+# ssh
26+# export SSH_KEY_PATH="~/.ssh/dsa_id"
27+
28diff --git a/tools/install.sh b/tools/install.sh
29index 5af038fd991129aed96046616dca448e15c91d58..314affe6c70824de1ce8793f183fd14d4acc7553 100755
30--- a/tools/install.sh
31+++ b/tools/install.sh
32@@ -26,7 +26,9 @@ echo "\033[0;34mUsing the Oh My Zsh template file and adding it to ~/.zshrc\033[
33 cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
34 
35 echo "\033[0;34mCopying your current PATH and adding it to the end of ~/.zshrc for you.\033[0m"
36-echo "export PATH=\$PATH:$PATH" >> ~/.zshrc
37+sed -i -e "/export PATH=/ c\\
38+export PATH=\"$PATH\"
39+" ~/.zshrc
40 
41 echo "\033[0;34mTime to change your default shell to zsh!\033[0m"
42 chsh -s `which zsh`
43@@ -39,5 +41,6 @@ echo "\033[0;32m"'\____/_/ /_/  /_/ /_/ /_/\__, /    /___/____/_/ /_/  '"\033[0m
44 echo "\033[0;32m"'                        /____/                       '"\033[0m"
45 
46 echo "\n\n \033[0;32m....is now installed.\033[0m"
47+echo "\n\n \033[0;32mPlease look over the ~/.zshrc file to select plugins, themes, and options.\033[0m"
48 /usr/bin/env zsh
49 source ~/.zshrc