Permalink
Browse files

selecta my bash!

  • Loading branch information...
1 parent 8c786f5 commit e8b0385953aed45d4c9869b11bbc262a2c4fed7e @aaronj1335 committed Oct 21, 2013
Showing with 541 additions and 2 deletions.
  1. +7 −2 home_files/bashrc
  2. +534 −0 selecta
View
@@ -91,8 +91,6 @@ export CLICOLOR="true"
export JS_CMD="node"
-set -o emacs
-
### how many peices of flair can we add to our $PS1‽
@@ -209,6 +207,13 @@ if ! which ip &>/dev/null; then
}
fi
+# 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
+
# set tab width to 4 (useful when you're running "cat" on a file), but it makes
# things all screwy when you ssh somewhere
#if which tabs &>/dev/null; then
Oops, something went wrong.

0 comments on commit e8b0385

Please sign in to comment.