From 506ad8342cf7908d1d28d767501fe47321e9f80e Mon Sep 17 00:00:00 2001 From: Jack Danger Canty Date: Wed, 18 Feb 2015 09:11:52 -0800 Subject: [PATCH] Adding install.sh script Copying large commands out of a README is slightly more daunting for new users (or was for me, anyway). --- README.md | 5 +---- install.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100755 install.sh diff --git a/README.md b/README.md index 42c68532..c2f7e86d 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/install.sh b/install.sh new file mode 100755 index 00000000..209df435 --- /dev/null +++ b/install.sh @@ -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