diff options
author | Mateusz Galazyn | 2021-01-12 09:21:55 +0100 |
---|---|---|
committer | Mateusz Galazyn | 2021-01-12 09:21:55 +0100 |
commit | fc4c00625cab052e627fc2a3e25e7a57b4f95a2c (patch) | |
tree | 43f698170ef6fced721ae575c446e51a95a06202 /zim.install | |
parent | 5a378e94d516c57d39629de545b78b0f020d86a4 (diff) | |
download | aur-fc4c00625cab052e627fc2a3e25e7a57b4f95a2c.tar.gz |
Improve compatibility, test script
Diffstat (limited to 'zim.install')
-rw-r--r-- | zim.install | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/zim.install b/zim.install index 9b6695f9aae9..5809b32c7c93 100644 --- a/zim.install +++ b/zim.install @@ -1,29 +1,32 @@ #!/bin/bash post_install() { - [[ -f ~root/.zimrc ]] || ln -s /etc/zsh/zimrc ~root/.zimrc + [[ -f ~root/.zimrc ]] || ln -s /etc/zsh/zimrc ~root/.zimrc compile_scripts - echo - echo "Zim is enabled for all users by default." + echo + echo "Zim is enabled for all users by default." echo "~/.zimrc was symlinked to /etc/zsh/zimrc for root (if it was not present)" - echo "Global settings reside in the /etc/zsh/ directory." - echo "To personalize Zsh and zim, edit your local ~/.zshrc and ~/.zimrc files." - echo "A user can also have a custom, overriding Zim installation in ~/.zim/" - echo + echo "Global settings reside in the /etc/zsh/ directory." + echo "To personalize Zsh and zim, edit your local ~/.zshrc and ~/.zimrc files." + echo "A user can also have a custom, overriding Zim installation in ~/.zim/" + echo + echo "Please note that zim errors are suppressed, so if you're experiencing any issues" + echo "with zim, remove &>/dev/null from /etc/zsh/zshrc" + echo } post_upgrade() { - compile_scripts + compile_scripts } post_remove() { - remove_compiled_scripts + remove_compiled_scripts } compile_scripts() { - zsh -c 'export ZIM_HOME=/usr/lib/zim; source /etc/zsh/zshrc; source /usr/lib/zim/templates/zlogin;' + zsh -c 'export ZIM_HOME=/usr/lib/zim; source /etc/zsh/zshrc; source /usr/lib/zim/templates/zlogin;' } remove_compiled_scripts() { - find /usr/lib/zim -name "*.zwc" | xargs rm -f + find /usr/lib/zim -name "*.zwc" | xargs rm -f } |