Skip to content

Instantly share code, notes, and snippets.

@teranex
Created May 25, 2016 08:13
Show Gist options
  • Save teranex/2b5bfc3bc0bd760ebf03d821b283c7f2 to your computer and use it in GitHub Desktop.
Save teranex/2b5bfc3bc0bd760ebf03d821b283c7f2 to your computer and use it in GitHub Desktop.
j
function j() {
path=`(cat ~/bashmarks && find /home/jeroen/Projecten/ -maxdepth 3 -type d -not -path '*/\.*') | fzf --extended --query="$1" --select-1`
if [ $? -eq 0 ]; then
cd "$path"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment