post_install() { grep -q '/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 }