summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2018-05-27 22:42:57 +0200
committerjohannst <stoelp@eit.uni-kl.de>2018-05-27 22:42:57 +0200
commit41190507f28ee71d8907a4f9a0fc9bdf56a85a7f (patch)
treec0d5fb92005e430158320952199eaec2b2e55276 /install
parente6b979acb8621854a2e8235feb78528ce5c0741e (diff)
downloaddotfiles-41190507f28ee71d8907a4f9a0fc9bdf56a85a7f.tar.gz
dotfiles-41190507f28ee71d8907a4f9a0fc9bdf56a85a7f.zip
Cleaned & improved zshrc
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