From 0c3b7124633e790fd3096e301a0c01c8b3996de1 Mon Sep 17 00:00:00 2001 From: bretello Date: Sat, 13 Mar 2021 14:50:57 +0100 Subject: [PATCH] zsh: fix tab formatting for zsh-theme --- themes/brethil.zsh-theme | 52 ++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/themes/brethil.zsh-theme b/themes/brethil.zsh-theme index 366a000..019d7d7 100644 --- a/themes/brethil.zsh-theme +++ b/themes/brethil.zsh-theme @@ -6,32 +6,32 @@ # See the prompt expansion section in `info zsh` for more info function user_prompt(){ - # prints info about username/hostname - # for ssh connections - local p - local host - if [[ $UID -eq 0 ]]; then - # root - echo -n "%F{255}[%f" # open square bracket - echo -n "%K{160}%F{255}%Broot%b%k%f" - if [[ $SSH_CONNECTION ]]; then - # add the white @ - # echo -n '%F{255} at %f' - echo -n "%F{255}@%f" - fi - fi - if [[ $SSH_CONNECTION ]]; then - if [[ $UID -ne 0 ]]; then - echo -n "%F{255}[%f" # open square bracket - fi - # underlined orange hostname (%m) - echo -n "%K{202}%B%F{255}%m%f%k%b" - if [[ $UID -ne 0 ]]; then - echo -n "%F{255}]%f" # close square bracket - fi - fi - # close square bracket - if [[ $UID -eq 0 ]]; then echo "%F{255}]%f"; fi + # prints info about username/hostname + # for ssh connections + local p + local host + if [[ $UID -eq 0 ]]; then + # root + echo -n "%F{255}[%f" # open square bracket + echo -n "%K{160}%F{255}%Broot%b%k%f" + if [[ $SSH_CONNECTION ]]; then + # add the white @ + # echo -n '%F{255} at %f' + echo -n "%F{255}@%f" + fi + fi + if [[ $SSH_CONNECTION ]]; then + if [[ $UID -ne 0 ]]; then + echo -n "%F{255}[%f" # open square bracket + fi + # underlined orange hostname (%m) + echo -n "%K{202}%B%F{255}%m%f%k%b" + if [[ $UID -ne 0 ]]; then + echo -n "%F{255}]%f" # close square bracket + fi + fi + # close square bracket + if [[ $UID -eq 0 ]]; then echo "%F{255}]%f"; fi } function job_prompt() {