diff --git a/share/completions/go.fish b/share/completions/go.fish index cfafbb0fd..93a87ca65 100644 --- a/share/completions/go.fish +++ b/share/completions/go.fish @@ -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 diff --git a/share/completions/mvn.fish b/share/completions/mvn.fish index a12de4b3e..bc7852a4f 100644 --- a/share/completions/mvn.fish +++ b/share/completions/mvn.fish @@ -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 '//{n; s!^.*\([^<]*\).*$!\1!; p}' ~/.m2/settings.xml pom.xml ^/dev/null + sed -n -e '//{n; s!^.*\([^<]*\).*$!\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"