Skip to content

Commit

Permalink
Ohhh mah god! Life, y'all, it's fkn beautiful sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshCheek committed Jul 7, 2014
1 parent 44998ef commit dd5cd12
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions fish/completions/be.fish
@@ -0,0 +1 @@
make_completion be "bundle exec"
1 change: 1 addition & 0 deletions fish/completions/ga.fish
@@ -0,0 +1 @@
make_completion ga "git add"
1 change: 1 addition & 0 deletions fish/completions/gb.fish
@@ -0,0 +1 @@
make_completion gb "git branch"
1 change: 1 addition & 0 deletions fish/completions/gd.fish
@@ -0,0 +1 @@
make_completion gd "git diff"
1 change: 1 addition & 0 deletions fish/completions/gh.fish
@@ -0,0 +1 @@
make_completion gh "git log"
1 change: 1 addition & 0 deletions fish/completions/go.fish
@@ -0,0 +1 @@
make_completion go "git checkout"
1 change: 1 addition & 0 deletions fish/completions/gs.fish
@@ -0,0 +1 @@
make_completion gs "git status"
1 change: 1 addition & 0 deletions fish/completions/j.fish
@@ -0,0 +1 @@
make_completion j jobs
1 change: 1 addition & 0 deletions fish/completions/l.fish
@@ -0,0 +1 @@
make_completion l ls
1 change: 1 addition & 0 deletions fish/completions/tbe.fish
@@ -0,0 +1 @@
make_completion tbe "bundle exec"
7 changes: 7 additions & 0 deletions fish/functions/make_completion.fish
@@ -0,0 +1,7 @@
# Based on http://stackoverflow.com/a/24604433/184212
function make_completion --argument alias command
complete -c $alias -xa "(
set -l cmd (commandline -pc | sed -e 's/^ *\S\+ *//' );
complete -C\"$command \$cmd\";
)"
end

0 comments on commit dd5cd12

Please sign in to comment.