summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rwxr-xr-xinstall16
1 files changed, 16 insertions, 0 deletions
diff --git a/install b/install
index 9cd19fa..2c32e65 100755
--- a/install
+++ b/install
@@ -18,6 +18,7 @@ gToolsConfig=(
"i3status:i3status:i3statusConfigInstaller"
"i3blocks:i3blocks:i3blocksConfigInstaller"
"termite:termite:termiteConfigInstaller"
+"zshrc:zsh:zshrcInstaller"
)
gMagicNumber=e2718281
@@ -217,6 +218,21 @@ function termiteConfigInstaller() {
}
#}}}
+#{{{ zshrcInstaller
+
+function zshrcInstaller() {
+ local zshrc=~/.zshrc
+ touch $zshrc
+ grep $gMagicNumber $zshrc > /dev/null 2>&1
+ if [[ $? = 0 ]]; then
+ return 1
+ fi
+ echo -e "\n# $gMagicNumber - Auto generated, do not delete or modify!" >> $zshrc
+ echo -e "source $ABS_BASE_DIR/zshrc" >> $zshrc
+ return 0
+}
+
+#}}}
#{{{ Installer Main Loop