From 1dc014ed37459501a4a18aad983e9115a2fb895d Mon Sep 17 00:00:00 2001 From: He4eT Date: Thu, 10 Apr 2025 18:36:53 +0200 Subject: [PATCH] zsh: minimal-groups theme --- zsh/themes/custom-groups.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/themes/custom-groups.zsh-theme b/zsh/themes/custom-groups.zsh-theme index 5916a38..33b5004 100644 --- a/zsh/themes/custom-groups.zsh-theme +++ b/zsh/themes/custom-groups.zsh-theme @@ -4,7 +4,7 @@ ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}▴%{$fg[white]%}]%{$reset_color%} " ZSH_THEME_GIT_PROMPT_CLEAN="]%{$reset_color%} " function braille_prompt() { - local input="${1:-0}" # если аргумент не передан, по умолчанию 0 + local input="${1:-0}" local hash=$( echo "$input" | md5sum | cut -d' ' -f1) local braille=$(echo $hash | xxd -r -p | od -An -vtu1 | \ awk '{for(i=1;i<=NF;i++) printf "\\U%08x", 0x2800 + $i}' | xargs -0 printf "%b")