aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/autojump/pkg-deinstall
blob: 03d9c8fafad8cb762d2404f7511641abc64d761a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

case $2 in
POST-DEINSTALL)
    rm -f /etc/profile.autojump
    rm -f /etc/zshrc.autojump
    # delete the source (.) line from the /etc/profile and /etc/zshrc
    if [ -f /etc/profile ] ; then
        sed -i '' -e '/profile.autojump/d' /etc/profile
    fi
    if [ -f /etc/zshrc ] ; then
        sed -i '' -e '/zshrc.autojump/d' /etc/zshrc
    fi
    ;;
esac