Skip to content

Commit dbf4181

Browse files
committed
minor stylistic improvements
1 parent 3a8f6fa commit dbf4181

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()
3030
ENDIF()
3131

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

5353
Integration with vim-xkbswitch

g3kb-switch-completion.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)