aboutsummaryrefslogtreecommitdiff
path: root/openrussian.fish
blob: b7048859f626cb24c986dbe875a28b6a9c192f96 (plain)
1
2
3
4
5
6
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)"