diff options
author | johannst <stoelp@eit.uni-kl.de> | 2018-05-27 22:42:57 +0200 |
---|---|---|
committer | johannst <stoelp@eit.uni-kl.de> | 2018-05-27 22:42:57 +0200 |
commit | 41190507f28ee71d8907a4f9a0fc9bdf56a85a7f (patch) | |
tree | c0d5fb92005e430158320952199eaec2b2e55276 /install | |
parent | e6b979acb8621854a2e8235feb78528ce5c0741e (diff) | |
download | dotfiles-41190507f28ee71d8907a4f9a0fc9bdf56a85a7f.tar.gz dotfiles-41190507f28ee71d8907a4f9a0fc9bdf56a85a7f.zip |
Cleaned & improved zshrc
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 |