diff options
Diffstat (limited to '.INSTALL')
-rw-r--r-- | .INSTALL | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.INSTALL b/.INSTALL new file mode 100644 index 000000000000..61876aba19d3 --- /dev/null +++ b/.INSTALL @@ -0,0 +1,14 @@ +post_install() { + echo ". /usr/share/shell-mommy/shell-mommy.sh" >> "$(getent passwd $SUDO_USER | cut -d: -f6)/.bashrc" + printf "Installed -- Don't forget to restart your shell!\n" +} + +post_upgrade() { + echo ". /usr/share/shell-mommy/shell-mommy.sh" >> "$(getent passwd $SUDO_USER | cut -d: -f6)/.bashrc" + printf "Installed -- Don't forget to restart your shell!\n" +} + +post_remove() { + sed -i "/. \/usr\/share\/shell-mommy\/shell-mommy.sh/d" "$(getent passwd $SUDO_USER | cut -d: -f6)/.bashrc" + printf "Removed -- Don't forget to restart your shell!\n" +}
\ No newline at end of file |