diff options
Diffstat (limited to 'xonsh.install')
-rw-r--r-- | xonsh.install | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xonsh.install b/xonsh.install new file mode 100644 index 000000000000..c7e0f957f441 --- /dev/null +++ b/xonsh.install @@ -0,0 +1,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 +} |