mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-17 06:42:45 +08:00
Stringify a few more completions
[ci skip]
This commit is contained in:
parent
c775335b2a
commit
1cad15b01f
|
@ -29,7 +29,7 @@ function __fish_iptables_user_chains
|
|||
set tablearg "--table=$table"
|
||||
end
|
||||
# This only works as root, so ignore errors
|
||||
iptables $tablearg -L 2>/dev/null | grep Chain | while read a b c
|
||||
iptables $tablearg -L 2>/dev/null | string match '*Chain*' | while read a b c
|
||||
echo $b
|
||||
end
|
||||
end
|
||||
|
|
|
@ -296,12 +296,12 @@ _svn_cmpl_ svn:keywords -a "Id" -d 'A compressed summary of all keywords'
|
|||
#
|
||||
# Completions for the 'relocate' subcommand
|
||||
#
|
||||
_svn_cmpl_ $relocate -xa '( svn info | grep URL: | cut -d " " -f 2 ) http:// ftp:// svn+ssh:// svn+ssh://(__fish_print_hostnames)'
|
||||
_svn_cmpl_ $relocate -xa '( svn info | string match "*URL:*" | cut -d " " -f 2 ) http:// ftp:// svn+ssh:// svn+ssh://(__fish_print_hostnames)'
|
||||
|
||||
#
|
||||
# Completions for the 'switch', 'sw' subcommands
|
||||
#
|
||||
_svn_cmpl_ $switch -l relocate -d 'Relocate via URL-rewriting' -xa '( svn info | grep URL: | cut -d " " -f 2 ) http:// ftp:// svn+ssh:// svn+ssh://(__fish_print_hostnames)'
|
||||
_svn_cmpl_ $switch -l relocate -d 'Relocate via URL-rewriting' -xa '( svn info | string match "*URL:*" | cut -d " " -f 2 ) http:// ftp:// svn+ssh:// svn+ssh://(__fish_print_hostnames)'
|
||||
|
||||
#
|
||||
# Completions for the 'status', 'st' subcommands
|
||||
|
|
|
@ -9,9 +9,7 @@ complete -c wicd-cli -s y -l wireless -d 'Perform operation on wireless n
|
|||
complete -c wicd-cli -s z -l wired -d 'Perform operation on wired network'
|
||||
complete -c wicd-cli -s w -l save -d 'Save profile'
|
||||
complete -c wicd-cli -s o -l load-profile -d 'Load profile'
|
||||
complete -c wicd-cli -s m -l name -d 'Set name for profile to save/load' #-xa '(wicd-cli -zl | sed "/^#/d; s/\S\+\s\+\(\S\+\)/\1/")'
|
||||
#complete -c wicd-cli -n '__fish_contains_opt wireless -s y' -s n -l network -xa '(wicd-cli -ySl | sed "/^#/d; s/\(\S\+\)\s\+\S\+\s\+\(\S\+\)\s\+\(.\+\)/\1\t\3, \2/")'
|
||||
#complete -c wicd-cli -n '__fish_contains_opt wired -s z' -s n -l network -xa '(wicd-cli -zl | grep -v "^#")'
|
||||
complete -c wicd-cli -s m -l name -d 'Set name for profile to save/load'
|
||||
complete -c wicd-cli -s p -l network-property -r -d 'Get or set network property'
|
||||
complete -c wicd-cli -s s -l set-to -r -d 'Set network property to'
|
||||
complete -c wicd-cli -s n -l network -d 'Set the network'
|
||||
|
|
Loading…
Reference in New Issue
Block a user