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