Skip to content

Instantly share code, notes, and snippets.

@aaronj1335
Last active December 26, 2015 04:09
Show Gist options
  • Select an option

  • Save aaronj1335/7090969 to your computer and use it in GitHub Desktop.

Select an option

Save aaronj1335/7090969 to your computer and use it in GitHub Desktop.
# if we've got the 'selecta' command (https://github.com/garybernhardt/selecta)
# then bind ctrl-b to fuzzy-find a file and insert it on the command line
if which selecta &>/dev/null; then
export SELECTA_IGNORE='(.*node_modules.*)|(.*.git.*)'
bind '"\C-b" "$(find -E . -type f -not -regex \"$SELECTA_IGNORE\" \| selecta)\n"'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment