From 25b6da67b68845ac5e5174442bb824df2d8e32c3 Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Thu, 30 May 2019 18:52:16 +0200 Subject: [PATCH] Fix linting Signed-off-by: Severin Kaderli --- system/.config/zsh/.zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/.config/zsh/.zshrc b/system/.config/zsh/.zshrc index 9dcecbd..a183e15 100644 --- a/system/.config/zsh/.zshrc +++ b/system/.config/zsh/.zshrc @@ -42,9 +42,9 @@ zstyle ':completion:*' rehash true # Use colors from xresources for linux console if [ "$TERM" = "linux" ]; then _SEDCMD='s/.*\*color\([0-9]\{1,\}\).*#\([0-9a-fA-F]\{6\}\).*/\1 \2/p' - for i in $(sed -n "$_SEDCMD" "${XDG_CONFIG_HOME}/X11/xresources" | awk '$1 < 16 {printf "\\e]P%X%s", $1, $2}'); do - echo -en "$i" - done + while IFS= read -r line; do + echo -en "${line}" + done < <(sed -n "${_SEDCMD}" "${XDG_CONFIG_HOME}/X11/xresources" | awk '$1 < 16 {printf "\\e]P%X%s", $1, $2}') clear fi