summarylogtreecommitdiffstats
path: root/elvish.install
blob: 79fed516ef8b9421e486ecad4bfbc230d1e569a9 (plain)
1
2
3
4
5
6
7
8
9
10
post_install() {
  grep -qe '^/usr/bin/elvish$' etc/shells || echo '/usr/bin/elvish' >> etc/shells
  grep -qe '^/bin/elvish$' etc/shells || echo '/bin/elvish' >> etc/shells
}

pre_remove() {
  sed -ri -e '\|^/usr/bin/elvish$|d' -e '\|^/bin/elvish$|d' etc/shells
}

# vim:set ts=2 sw=2 et: