simple script to setup prezto
authorAmin Bandali <me@aminb.org>
Sun, 23 Nov 2014 02:40:00 +0000 (21:40 -0500)
committerAmin Bandali <me@aminb.org>
Sun, 23 Nov 2014 02:40:00 +0000 (21:40 -0500)
clone my fork and setup the symlinks

other/zsh/setup.sh [new file with mode: 0755]

diff --git a/other/zsh/setup.sh b/other/zsh/setup.sh
new file mode 100755 (executable)
index 0000000..564936a
--- /dev/null
@@ -0,0 +1,10 @@
+#! /bin/bash
+
+# clone my prezto fork
+git clone https://git.aminb.org/prezto $HOME/.zprezto
+
+# setup the symlinks
+setopt EXTENDED_GLOB
+for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
+  ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
+done