mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
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>
16 lines
369 B
Bash
16 lines
369 B
Bash
#!/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
|