blob: 61876aba19d3919b0e224d5acf2c9228137d3703 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"
}
|