You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
261 B

post_install() {
grep -qe '^/bin/zsh$' etc/shells || echo '/bin/zsh' >> etc/shells
grep -qe '^/usr/bin/zsh$' etc/shells || echo '/usr/bin/zsh' >> etc/shells
}
post_upgrade() {
post_install
}
pre_remove() {
sed -i -r '/^(\/usr)?\/bin\/zsh$/d' etc/shells
}