mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
feat(completion): support termux-toast command
This commit is contained in:
parent
45efb05a67
commit
4606153aa7
2 changed files with 32 additions and 0 deletions
29
share/completions/termux-toast.fish
Normal file
29
share/completions/termux-toast.fish
Normal file
|
@ -0,0 +1,29 @@
|
|||
set command termux-toast
|
||||
|
||||
complete -c $command -f
|
||||
|
||||
complete -c $command \
|
||||
-s h \
|
||||
-d 'Show [h]elp'
|
||||
|
||||
complete -c $command \
|
||||
-a '(__fish_termux_api__complete_colors)' \
|
||||
-s b \
|
||||
-d 'Specify the [b]ackground color of a message' \
|
||||
-x
|
||||
|
||||
complete -c $command \
|
||||
-a '(__fish_termux_api__complete_colors)' \
|
||||
-s c \
|
||||
-d 'Specify the text [c]olor of a message' \
|
||||
-x
|
||||
|
||||
complete -c $command \
|
||||
-a 'middle\tdefault top bottom' \
|
||||
-s g \
|
||||
-d 'Specify the position of a message' \
|
||||
-x
|
||||
|
||||
complete -c $command \
|
||||
-s s \
|
||||
-d 'Show a message for the [s]hort period of time'
|
3
share/functions/__fish_termux_api__complete_colors.fish
Normal file
3
share/functions/__fish_termux_api__complete_colors.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function __fish_termux_api__complete_colors
|
||||
set_color --print-colors | string match --invert --regex '^(br.*|normal)$'
|
||||
end
|
Loading…
Reference in a new issue