Skip to content

Instantly share code, notes, and snippets.

@xetorthio
Created August 29, 2013 13:11
Show Gist options
  • Save xetorthio/6377896 to your computer and use it in GitHub Desktop.
Save xetorthio/6377896 to your computer and use it in GitHub Desktop.
jump (by marquitos!)
export MARKPATH=$HOME/.marks
function j {
cd -P $MARKPATH/$1 2>/dev/null || echo "No such mark: $1"
}
function m {
mkdir -p $MARKPATH; ln -s $(pwd) $MARKPATH/$1
}
function um {
rm -i $MARKPATH/$1
}
function ms {
ls -l $MARKPATH | sed 's/ / /g' | cut -d' ' -f9- | sed 's/ -/\t-/g' && echo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment