215717c41e
Autojump is a tool that acts as a complement to cd: it makes navigating your filesystem a lot faster. It works by automagically maintaining a database of the directories you use the most from the command line, and allows you to jump back and forth between them, by typing just a few letters of the name of the directory you want to jump to. PR: ports/151467 Submitted by: Neeraj Verma <neeraj.verma.ports@vermatech.com>
14 lines
341 B
Bash
14 lines
341 B
Bash
#!/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
|