aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_complete_setxkbmap.fish
diff options
context:
space:
mode:
Diffstat (limited to 'share/functions/__fish_complete_setxkbmap.fish')
-rw-r--r--share/functions/__fish_complete_setxkbmap.fish3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/functions/__fish_complete_setxkbmap.fish b/share/functions/__fish_complete_setxkbmap.fish
new file mode 100644
index 00000000..9f8578a5
--- /dev/null
+++ b/share/functions/__fish_complete_setxkbmap.fish
@@ -0,0 +1,3 @@
+function __fish_complete_setxkbmap --description 'Complete setxkb options' --argument-names what
+ sed -e "1,/! $what/d" -e '/^\s*$/,$d' /usr/share/X11/xkb/rules/xorg.lst | sed -r 's/\s+(\S+)\s+(.+)/\1\t\2/'
+end