diff options
Diffstat (limited to 'openrussian.fish')
-rw-r--r-- | openrussian.fish | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openrussian.fish b/openrussian.fish new file mode 100644 index 0000000..b704885 --- /dev/null +++ b/openrussian.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)" |