summarylogtreecommitdiffstats
path: root/nushell.install
blob: f39a630bace0442f1c1a7e0ce35073e6e0ec6596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
post_install() {
  grep -Fqx /bin/nu /etc/shells || echo /bin/nu >> /etc/shells
  grep -Fqx /usr/bin/nu /etc/shells || echo /usr/bin/nu >> /etc/shells
}

post_upgrade() {
  post_install
}

pre_remove() {
  sed -i -r '/^(\/usr)?\/bin\/nu$/d' etc/shells
}