diff options
author | Tatsuyuki Ishi | 2015-12-28 11:12:26 +0900 |
---|---|---|
committer | Tatsuyuki Ishi | 2015-12-28 11:12:26 +0900 |
commit | c3982f61f93334f4633d20556ade26dd3aad247e (patch) | |
tree | a5d7e6b8340b925a401ad95f1c099f1508b0112a /zim.install | |
download | aur-c3982f61f93334f4633d20556ade26dd3aad247e.tar.gz |
Initial commit
Diffstat (limited to 'zim.install')
-rw-r--r-- | zim.install | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/zim.install b/zim.install new file mode 100644 index 000000000000..626d374e20e5 --- /dev/null +++ b/zim.install @@ -0,0 +1,28 @@ +#!/bin/bash + +post_install() { + compile_scripts + echo + echo "Zim is enabled for all users by default." + echo "To change that, edit /etc/zsh/zshrc file." + 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 Prezto installation in ~/.zim/" + echo +} + +post_upgrade() { + compile_scripts +} + +post_remove() { + remove_compiled_scripts +} + +compile_scripts() { + zsh /etc/zsh/zlogin +} + +remove_compiled_scripts() { + find /usr/lib/zim -name "*.zwc" | xargs rm -f +}
\ No newline at end of file |