summaryrefslogtreecommitdiff
path: root/community/fish/fish.install
blob: 694ad3eca5a6ec9455a532b2d4c67bbd0835e81c (plain)
1
2
3
4
5
6
7
8
9
10
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
}