From 41190507f28ee71d8907a4f9a0fc9bdf56a85a7f Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 27 May 2018 22:42:57 +0200 Subject: Cleaned & improved zshrc --- install | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'install') 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 @@ -216,6 +217,21 @@ function termiteConfigInstaller() { return 0 } +#}}} +#{{{ 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 -- cgit v1.2.3