From 9e39aab325f7221a2c4a799f2d1de1d660c308f2 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 3 Jul 2015 21:14:34 +0100 Subject: [PATCH] Formatting fix --- share/kak/kakrc | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) 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{