mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 15:37:22 +00:00
zsh: minimal-groups theme
This commit is contained in:
parent
4045438fb0
commit
1dc014ed37
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue