Skip to content

Instantly share code, notes, and snippets.

@ianhall
ianhall / bashrc
Last active May 10, 2018 02:44
Bash profile script to mark and jump to folders
# Adapted for Mac OSX from http://christian.gen.co/macbook-developer-setup/
# and http://jeroenjanssens.com/2013/08/16/quickly-navigate-your-filesystem-from-the-command-line.html
export MARKPATH=$HOME/.marks
function jump {
cd -P $MARKPATH/$1 2>/dev/null || echo "No such mark: $1"
}
function mark {
mkdir -p $MARKPATH; ln -s $(pwd) $MARKPATH/$1
}
function unmark {