Skip to content

Instantly share code, notes, and snippets.

@seantur
Created July 9, 2020 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seantur/38ae31f0ee910003bb27ff3e53646699 to your computer and use it in GitHub Desktop.
Save seantur/38ae31f0ee910003bb27ff3e53646699 to your computer and use it in GitHub Desktop.
function fasd_fzf_file () {
fasd -f | fzf --tac --reverse --height=25% | awk '{print $2}'
}
function fasd_fzf_dir () {
fasd - d | fzf --tac --reverse --height=25% | awk '{print $2}'
}
alias v='vim $(fasd_fzf_file)'
alias d='cd $(fasd_fzf_dir)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment