1 2 3 4 5 6 7
post_install() { grep -x /usr/bin/xonsh /etc/shells >/dev/null || echo /usr/bin/xonsh >> /etc/shells } post_remove() { sed -i "/^\/usr\/bin\/xonsh$/d" /etc/shells }