Skip to content

Commit

Permalink
Move mkae completion function to its own file
Browse files Browse the repository at this point in the history
darcs-hash:20070921210401-75c98-6b303317ba375f0c6402e81902e599e79a9c06ed.gz
  • Loading branch information
liljencrantz committed Sep 21, 2007
1 parent 06de260 commit dab7e6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 0 additions & 5 deletions share/completions/make.fish
@@ -1,10 +1,5 @@
# Completions for make

function __fish_print_make_targets
set files Makefile makefile GNUmakefile
sgrep -h -E '^[^#%=$[:space:]][^#%=$]*:([^=]|$)' $files | cut -d ":" -f 1 | sed -e 's/^ *//;s/ *$//;s/ */\n/g' ^/dev/null
end

# This completion is a bit ugly. It reenables file completion on
# assignments, so e.g. 'make foo FILES=<tab>' will recive standard
# filename completion. Unfortunatly, this turns out to be a bit
Expand Down
4 changes: 4 additions & 0 deletions share/functions/__fish_print_make_targets.fish
@@ -0,0 +1,4 @@
function __fish_print_make_targets
set files Makefile makefile GNUmakefile
sgrep -h -E '^[^#%=$[:space:]][^#%=$]*:([^=]|$)' $files | cut -d ":" -f 1 | sed -e 's/^ *//;s/ *$//;s/ */\n/g' ^/dev/null
end

0 comments on commit dab7e6c

Please sign in to comment.