diff --git a/share/kak/kakrc b/share/kak/kakrc index e588fd48..beccc284 100644 --- a/share/kak/kakrc +++ b/share/kak/kakrc @@ -31,20 +31,20 @@ def -shell-params runtime %{ %sh{ }} def -shell-params -docstring "colorscheme : enable named colorscheme" \ - -shell-completion %{ - prefix=${1:0:${kak_pos_in_token}} - ( - for col in ${kak_runtime}/colors/*.kak; do - expr $(basename "${col}" .kak) : "^\(${prefix}.*\)$" - done - ) | grep -v '^$' - } \ - colorscheme %{ %sh{ - if [ $# -eq 1 ]; then - echo "source '${kak_runtime}/colors/$1.kak'" - else - echo -color Error 'Usage: colorscheme ' - fi + -shell-completion %{ + prefix=${1:0:${kak_pos_in_token}} + ( + for col in ${kak_runtime}/colors/*.kak; do + expr $(basename "${col}" .kak) : "^\(${prefix}.*\)$" + done + ) | grep -v '^$' + } \ + colorscheme %{ %sh{ + if [ $# -eq 1 ]; then + echo "source '${kak_runtime}/colors/$1.kak'" + else + echo -color Error 'Usage: colorscheme ' + fi }} %sh{