diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-08-21 23:20:37 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-08-21 23:20:37 +0200 |
commit | 42c8887f940997f653fe7877c35dd01cb11c828f (patch) | |
tree | 9d0ce363b5fafb2ffdab50f70419e4e9793ebe93 /openrussian-completion.fish | |
parent | 0992c51b0e2af9542dedfac84c27548293c94f91 (diff) | |
download | openrussian-cli-42c8887f940997f653fe7877c35dd01cb11c828f.tar.gz |
Diffstat (limited to 'openrussian-completion.fish')
-rw-r--r-- | openrussian-completion.fish | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openrussian-completion.fish b/openrussian-completion.fish new file mode 100644 index 0000000..b704885 --- /dev/null +++ b/openrussian-completion.fish @@ -0,0 +1,7 @@ +function __fish_complete_openrussian + set --local lang (commandline --current-process | string match --regex -- '-L..') + set --local token (commandline --current-process --current-token) + openrussian $lang -C $token 2>/dev/null +end + +complete --command openrussian --arguments "-Len -Lde -V -p (__fish_complete_openrussian)" |