File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ IF(G3KBSWITCH_INSTALL_BASH_COMPLETION)
2525 IF (BASH_COMPLETION_FOUND)
2626 INSTALL (FILES g3kb-switch-completion.bash
2727 DESTINATION ${BASH_COMPLETION_COMPLETIONSDIR}
28- RENAME g3kb-switch )
28+ RENAME ${name} )
2929 ENDIF ()
3030ENDIF ()
3131
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ Usage: g3kb-switch [-p] Show the current layout group
4747 g3kb-switch -n Switch to the next layout group
4848 g3kb-switch -s ARG Switch to layout group ARG
4949 g3kb-switch -h Show this message and exit
50- g3kb-switch -v Show program version and exit
50+ g3kb-switch -v Show the program version and exit
5151```
5252
5353Integration with vim-xkbswitch
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ _g3kb_switch_completion()
66 return
77 fi
88
9- local comp_opt=" -h -l -n -p -s"
9+ local comp_opt=" -h -p -l -n -s"
1010
1111 if [ " ${# COMP_WORDS[@]} " -eq 3 ] ; then
1212 if [ " ${COMP_WORDS[1]} " = " -s" ] ; then
@@ -17,5 +17,5 @@ _g3kb_switch_completion()
1717 fi
1818}
1919
20- complete -F _g3kb_switch_completion g3kb-switch
20+ complete -F _g3kb_switch_completion g3kb-switch -o nosort
2121
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ void usage( void )
3636 " g3kb-switch -n Switch to the next layout group\n"
3737 " g3kb-switch -s ARG Switch to layout group ARG\n"
3838 " g3kb-switch -h Show this message and exit\n"
39- " g3kb-switch -v Show program version and exit\n" );
39+ " g3kb-switch -v Show the program version and exit\n"
40+ );
4041}
4142
4243
You can’t perform that action at this time.
0 commit comments