summaryrefslogtreecommitdiff
path: root/community/fish/fish.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/fish/fish.install')
-rw-r--r--community/fish/fish.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/fish/fish.install b/community/fish/fish.install
new file mode 100644
index 000000000..49a65ad82
--- /dev/null
+++ b/community/fish/fish.install
@@ -0,0 +1,11 @@
+post_install() {
+ grep -q '/usr/bin/fish' etc/shells || echo '/usr/bin/fish' >> etc/shells
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ sed -i '/^\/usr\/bin\/fish/d' /etc/shells
+}