mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03:00
completions: Fix leftover "^" redirections
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user