aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/autojump/files/pkg-install.in
blob: 0945d3f9bb5e4276ad0c4cd0c81967026574f04f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

case $2 in
POST-INSTALL)
    if [ -e /etc/profile ]; then \
        cp %%PREFIX%%/share/autojump/autojump.bash /etc/profile.autojump
        echo ". /etc/profile.autojump" >> /etc/profile
    fi
    if [ -e /etc/zshrc ]; then \
        cp  %%PREFIX%%/share/autojump/autojump.zsh /etc/zshrc.autojump
        echo ". /etc/zshrc.autojump" >> /etc/zshrc
    fi
    ;;
esac