mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
added completions for micro
This commit is contained in:
parent
c4b7abc6ef
commit
ca730cf714
1 changed files with 19 additions and 0 deletions
19
share/completions/micro.fish
Normal file
19
share/completions/micro.fish
Normal file
|
@ -0,0 +1,19 @@
|
|||
complete -c micro -o clean -d 'Cleans the configuration directory'
|
||||
complete -c micro -o config-dir -xa '(__fish_complete_directories)' -d 'Custom location for the configuration directory'
|
||||
complete -c micro -o options -d 'Show all option help'
|
||||
complete -c micro -o debug -d 'Enable debug mode'
|
||||
complete -c micro -o version -d 'Show version information'
|
||||
complete -c micro -o help -d 'Show help message'
|
||||
|
||||
for option in (micro -options | string replace -f -r '^-(\S+)\s.*' '$1')
|
||||
complete -c micro -o $option -x
|
||||
end
|
||||
|
||||
complete -c micro -o plugin -xa "
|
||||
install\t'Install plugins'
|
||||
remove\t'Remove plugins'
|
||||
update\t'Update plugins'
|
||||
search\t'Search for a plugin'
|
||||
list\t'List installed plugins'
|
||||
available\t'List available plugins'
|
||||
"
|
Loading…
Reference in a new issue