completions: Fix leftover "^" redirections

This commit is contained in:
Fabian Homborg 2020-06-02 21:42:16 +02:00
parent 1af1e7b69b
commit f25f15fd69
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ complete -c go -n "__fish_seen_subcommand_from build compile fix fmt install run
# Completions for go cmds that takes pkg arguments
complete -c go -n "__fish_seen_subcommand_from build doc fix fmt install test vet" -x -a "(
go list -e -f '{{.ImportPath}} {{or .Doc \"Go package\"}}' (commandline -ct)... ^/dev/null
go list -e -f '{{.ImportPath}} {{or .Doc \"Go package\"}}' (commandline -ct)... 2>/dev/null
)" --description Package

View file

@ -71,7 +71,7 @@ function __fish_mvn_profiles
# find line opening the profile-tag
# read next line
# extract contents of id-tag
sed -n -e '/<profile>/{n; s!^.*<id>\([^<]*\)</id>.*$!\1!; p}' ~/.m2/settings.xml pom.xml ^/dev/null
sed -n -e '/<profile>/{n; s!^.*<id>\([^<]*\)</id>.*$!\1!; p}' ~/.m2/settings.xml pom.xml 2>/dev/null
end
complete -c mvn -f -r -o P -l activate-profiles -a "(__fish_mvn_profiles)" -d "Comma-delimited list of profiles to activate"