diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-04-11 21:12:36 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-04-11 21:12:36 +0100 |
| commit | 55d381999e4570c8a146b978e6770fbb5e3d0c8b (patch) | |
| tree | 4eeaa3caf41d1273e701d16e1a546018e66902a3 | |
| parent | a2d426abbaf851cb127a9e6534e0801ff5042d8e (diff) | |
Avoid stderr message from cut when completing colorschemes
| -rw-r--r-- | share/kak/kakrc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/kak/kakrc b/share/kak/kakrc index 9d1eced1..130f9b1f 100644 --- a/share/kak/kakrc +++ b/share/kak/kakrc @@ -7,7 +7,7 @@ def -params 1.. runtime %{ %sh{ def -params 1 -docstring "colorscheme <name>: enable named colorscheme" \ -shell-completion %{ - prefix=$(printf %s "$1" | cut -c-${kak_pos_in_token}) + prefix=$(printf %s "$1" | cut -c1-${kak_pos_in_token} 2> /dev/null) ( localconfdir=${XDG_CONFIG_HOME:-${HOME}/.config}/kak for col in ${kak_runtime}/colors/*.kak ${localconfdir}/colors/*.kak; do |
