Update fzf location
[dotfiles] / .bash_marks
1 #!/bin/sh
2
3 export MARKPATH=$HOME/.marks
4 function jump {
5 cd -P "$MARKPATH/$1" 2>/dev/null || echo "No such mark: $1"
6 }
7
8 function mark {
9 mkdir -p "$MARKPATH"; ln -s "$(pwd)" "$MARKPATH/$1"
10 }
11
12 function unmark {
13 rm -i "$MARKPATH/$1"
14 }
15
16 function marks {
17 ls -l "$MARKPATH" | sed 's/ / /g' | cut -d' ' -f9- | sed 's/ -/\t-/g' && echo
18 }