mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08:00
869c42d72a
* add completion for azure cli (az) * alter az.fish to match faho's requests Co-authored-by: Kevin Konrad <kevin.konrad@unicepta.com>
13 lines
346 B
Fish
13 lines
346 B
Fish
function __fish_az_complete
|
|
set -lx _ARGCOMPLETE 1
|
|
set -lx _ARGCOMPLETE_IFS \n
|
|
set -lx _ARGCOMPLETE_SUPPRESS_SPACE 1
|
|
set -lx _ARGCOMPLETE_SHELL fish
|
|
set -lx COMP_LINE (commandline -pc)
|
|
set -lx COMP_POINT (string length (commandline -cp))
|
|
set -lx COMP_TYPE
|
|
az 8>&1 9>&2 2>/dev/null
|
|
end
|
|
|
|
complete -c az -f -a '(__fish_az_complete)'
|