mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 16:32:45 +08:00
Move mkae completion function to its own file
darcs-hash:20070921210401-75c98-6b303317ba375f0c6402e81902e599e79a9c06ed.gz
This commit is contained in:
parent
06de2602cb
commit
dab7e6c7b9
|
@ -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
|
||||
|
|
4
share/functions/__fish_print_make_targets.fish
Normal file
4
share/functions/__fish_print_make_targets.fish
Normal file
|
@ -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
|
Loading…
Reference in New Issue
Block a user