mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
fix(completion): use new function to complete streams
This commit is contained in:
parent
5b9c2096be
commit
9fad7e9936
2 changed files with 4 additions and 1 deletions
|
@ -38,7 +38,7 @@ complete -c $command \
|
|||
-x
|
||||
|
||||
complete -c $command \
|
||||
-a 'notification\tdefault alarm music ring system voice_call' \
|
||||
-a '(__fish_termux_api__complete_stream_ids | string replace --regex "(notification)" "\$1\tdefault")' \
|
||||
-s s \
|
||||
-d 'Specify the [s]tream for a speech' \
|
||||
-x
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
function __fish_termux_api__complete_stream_ids
|
||||
string join \n -- notification alarm music ring system voice_call
|
||||
end
|
Loading…
Reference in a new issue