diff options
author | axel <axel@liljencrantz.se> | 2006-02-17 20:13:39 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-02-17 20:13:39 +1000 |
commit | 343cafef346543282b5b6e825bc8f9dd10028a48 (patch) | |
tree | 1bcf221ecb525c7aeadc8325e7b780d3656e544b /share/completions/make.fish | |
parent | 95a01f3c8f15034433ffce368d8f2d13d925139c (diff) |
Redo installation file structure, move lots of things to $PREFIX/share/fish
darcs-hash:20060217101339-ac50b-d93d2c620a4b7f75f05ff461a6edbee001da7613.gz
Diffstat (limited to 'share/completions/make.fish')
-rw-r--r-- | share/completions/make.fish | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/share/completions/make.fish b/share/completions/make.fish new file mode 100644 index 00000000..351a0c1b --- /dev/null +++ b/share/completions/make.fish @@ -0,0 +1,29 @@ +#Completions for make + +function __fish_print_make_targets + set files Makefile makefile GNUmakefile + grep -h -E '^[^#%=$[:space:]][^#%=$]*:([^=]|$)' $files | cut -d ":" -f 1 | sed -e 's/^ *//;s/ *$//;s/ */\n/g' ^/dev/null +end + +complete -x -c make -a "(__fish_print_make_targets)" -d (_ "Target") +complete -r -c make -s f -d (_ "Use file as makefile") -r +complete -x -c make -s C -x -a "(__fish_complete_directory (commandline -ct))" -d (_ "Change directory") +complete -c make -s d -d (_ "Debug mode") +complete -c make -s e -d (_ "Environment before makefile") +complete -c make -s i -d (_ "Ignore errors") +complete -x -c make -s I -d (_ "Search directory for makefile") -a "(__fish_complete_directory (commandline -ct))" +complete -x -c make -s j -d (_ "Number of concurrent jobs") +complete -c make -s k -d (_ "Continue after an error") +complete -c make -s l -d (_ "Start when load drops") +complete -c make -s n -d (_ "Do not execute commands") +complete -c make -s o -r -d (_ "Ignore specified file") +complete -c make -s p -d (_ "Print database") +complete -c make -s q -d (_ "Question mode") +complete -c make -s r -d (_ "Eliminate implicit rules") +complete -c make -s s -d (_ "Quiet mode") +complete -c make -s S -d (_ "Don't continue after an error") +complete -c make -s t -d (_ "Touch files, don't run commands") +complete -c make -s v -d (_ "Display version and exit") +complete -c make -s w -d (_ "Print working directory") +complete -c make -s W -r -d (_ "Pretend file is modified") + |