Adding install.sh script

Copying large commands out of a README is slightly more daunting for new
users (or was for me, anyway).
This commit is contained in:
Jack Danger Canty 2015-02-18 09:11:52 -08:00
parent 88aee30ae8
commit 506ad8342c
2 changed files with 9 additions and 4 deletions

View file

@ -22,10 +22,7 @@ version is 4.3.17.
3. Create a new Zsh configuration by copying the Zsh configuration files
provided:
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
~/.zprezto/install.sh
4. Set Zsh as your default shell:

8
install.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/zsh
setopt EXTENDED_GLOB
DIR=$(dirname $0)
for rcfile in $DIR/runcoms/^README.md(.N); do
ln -s $rcfile "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done