···4545end
46464747function __bazel_query
4848- __bazel_output query --keep_going --order_output=no $argv
4848+ __bazel_output query --keep_going --order_output=no $argv
4949end
50505151function __bazel_targets
···5757 set last_char (string sub --start -1 -- $line)
5858 set target (string split --no-empty ' ' -- $line)[-1]
59596060- if test $last_char = " "; or string match --quiet --regex '^\-' -- $target
6060+ if test "$last_char" = " "; or string match --quiet --regex '^\-' -- $target
6161 return 0
6262 end
6363···174174175175# Add descriptions for subcommands
176176# TODO: it would be preferable to generate these descriptions from `bazel help` output
177177-__bazel_complete -n '__bazel_needs_command' -a analyze-profile -d 'Analyzes build profile data.'
178178-__bazel_complete -n '__bazel_needs_command' -a build -d 'Builds the specified targets.'
179179-__bazel_complete -n '__bazel_needs_command' -a coverage -d 'Runs tests and collects coverage'
177177+__bazel_complete -n '__bazel_needs_command' -a analyze-profile -d 'Analyzes build profile data.'
178178+__bazel_complete -n '__bazel_needs_command' -a build -d 'Builds the specified targets.'
179179+__bazel_complete -n '__bazel_needs_command' -a coverage -d 'Runs tests and collects coverage'
180180__bazel_complete -n '__bazel_needs_command' -a canonicalize-flags -d 'Canonicalizes a list of bazel options.'
181181-__bazel_complete -n '__bazel_needs_command' -a clean -d 'Removes output files and optionally stops the server.'
182182-__bazel_complete -n '__bazel_needs_command' -a dump -d 'Dumps the internal state of the bazel server process.'
183183-__bazel_complete -n '__bazel_needs_command' -a fetch -d 'Fetches external repositories that are prerequisites to the targets.'
184184-__bazel_complete -n '__bazel_needs_command' -a help -d 'Prints help for commands, or the index.'
185185-__bazel_complete -n '__bazel_needs_command' -a info -d 'Displays runtime info about the bazel server.'
186186-__bazel_complete -n '__bazel_needs_command' -a mobile-install -d 'Installs targets to mobile devices.'
187187-__bazel_complete -n '__bazel_needs_command' -a query -d 'Executes a dependency graph query.'
188188-__bazel_complete -n '__bazel_needs_command' -a run -d 'Runs the specified target.'
189189-__bazel_complete -n '__bazel_needs_command' -a shutdown -d 'Stops the bazel server.'
190190-__bazel_complete -n '__bazel_needs_command' -a test -d 'Builds and runs the specified test targets.'
191191-__bazel_complete -n '__bazel_needs_command' -a version -d 'Prints version information for bazel.'
181181+__bazel_complete -n '__bazel_needs_command' -a clean -d 'Removes output files and optionally stops the server.'
182182+__bazel_complete -n '__bazel_needs_command' -a dump -d 'Dumps the internal state of the bazel server process.'
183183+__bazel_complete -n '__bazel_needs_command' -a fetch -d 'Fetches external repositories that are prerequisites to the targets.'
184184+__bazel_complete -n '__bazel_needs_command' -a help -d 'Prints help for commands, or the index.'
185185+__bazel_complete -n '__bazel_needs_command' -a info -d 'Displays runtime info about the bazel server.'
186186+__bazel_complete -n '__bazel_needs_command' -a mobile-install -d 'Installs targets to mobile devices.'
187187+__bazel_complete -n '__bazel_needs_command' -a query -d 'Executes a dependency graph query.'
188188+__bazel_complete -n '__bazel_needs_command' -a run -d 'Runs the specified target.'
189189+__bazel_complete -n '__bazel_needs_command' -a shutdown -d 'Stops the bazel server.'
190190+__bazel_complete -n '__bazel_needs_command' -a test -d 'Builds and runs the specified test targets.'
191191+__bazel_complete -n '__bazel_needs_command' -a version -d 'Prints version information for bazel.'
+3
.config/fish/functions/pdfman.fish
···11+function pdfman
22+ man -t $argv | open -f -a Preview
33+end