summaryrefslogtreecommitdiff
path: root/staging/zsh/zsh.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-20 23:14:50 +0000
committerroot <root@rshg054.dnsready.net>2011-11-20 23:14:50 +0000
commit70b4878648fd376433739bd5c835503f6301a5b2 (patch)
treec74d46f8e06305505e381202251b6f71ca33c3e7 /staging/zsh/zsh.install
parenta3024f8996981b28ced27466cbd1d4ab40e57324 (diff)
Sun Nov 20 23:14:50 UTC 2011
Diffstat (limited to 'staging/zsh/zsh.install')
-rw-r--r--staging/zsh/zsh.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/staging/zsh/zsh.install b/staging/zsh/zsh.install
new file mode 100644
index 000000000..e2a53bea8
--- /dev/null
+++ b/staging/zsh/zsh.install
@@ -0,0 +1,11 @@
+post_install() {
+ grep -q '/bin/zsh' etc/shells || echo '/bin/zsh' >> etc/shells
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ sed -i '/^\/bin\/zsh/d' etc/shells
+}