diff options
Diffstat (limited to 'install')
-rwxr-xr-x | install | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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 |