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