Blueno_Termux/myTermux/.oh-my-zsh/custom/themes/rounded-custom.zsh-theme
2022-04-01 08:36:29 -04:00

31 lines
996 B
Bash

# Rounded minimal zsh theme
# Creator: owl4ce
# ----------------------------------
# https://github.com/owl4ce/dotfiles
# Requires Nerd Fonts for the icons
#if [[ $UID -eq 0 ]]; then
# user_symbol="%F{8}%K{8}%F{1}%{%k%}%F{8}%f"
#else
# user_symbol="%F{8}%K{8}%F{5}%{%k%}%F{8}%f"
#fi
#      
# Configuration
num_dirs=2 # Use 0 for full path
truncated_path="%F{7}%K{7} %F{0} %K{7} %F{0}%$num_dirs~ %{%k%}%F{7}"
background_jobs="%(1j.%F{0}%K{0} %F{3} %{%k%}%F{0}%f.)"
non_zero_return_value="%(0?..%F{7}%K{7} %F{1} %{%k%}%F{7}%f)"
ZSH_THEME_GIT_PROMPT_PREFIX="%F{7}%K{7} %F{0} %K{7} "
ZSH_THEME_GIT_PROMPT_SUFFIX=" %{%k%}%F{7} %{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%} "
# Left part of prompt
PROMPT='$truncated_path $user_symbol'
# Right part of prompt
RPROMPT=' $background_jobs $non_zero_return_value $(git_prompt_info)'
# Input in bold
zle_highlight=(default:bold)