diff options
| author | vladislav doster <10052309+vladdoster@users.noreply.github.com> | 2024-03-26 03:55:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-26 09:55:16 +0100 |
| commit | 1d09c6bb0a950756a65b02457842933e3aa493eb (patch) | |
| tree | d3da2149911d18975d3ca88158971e4207328950 /themes/josh.zsh-theme | |
| parent | a168efe73e467c7164ef9b49dea61e9aefd27a48 (diff) | |
| download | zsh-1d09c6bb0a950756a65b02457842933e3aa493eb.tar.gz zsh-1d09c6bb0a950756a65b02457842933e3aa493eb.tar.bz2 zsh-1d09c6bb0a950756a65b02457842933e3aa493eb.zip | |
style: remove trailing whitespace (#12303)
Diffstat (limited to 'themes/josh.zsh-theme')
| -rw-r--r-- | themes/josh.zsh-theme | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/themes/josh.zsh-theme b/themes/josh.zsh-theme index ea051c58e..df59280d7 100644 --- a/themes/josh.zsh-theme +++ b/themes/josh.zsh-theme @@ -15,7 +15,7 @@ function josh_prompt { branch_size=${#branch} ruby_size=${#ruby_version} user_machine_size=${#${(%):-%n@%m-}} - + if [[ ${#branch} -eq 0 ]] then (( ruby_size = ruby_size + 1 )) else @@ -24,15 +24,15 @@ function josh_prompt { (( branch_size = branch_size + 2 )) fi fi - + (( spare_width = ${spare_width} - (${user_machine_size} + ${path_size} + ${branch_size} + ${ruby_size}) )) while [ ${#prompt} -lt $spare_width ]; do prompt=" $prompt" done - + prompt="%{%F{green}%}$PWD$prompt%{%F{red}%}$(ruby_prompt_info)%{$reset_color%} $(git_current_branch)" - + echo $prompt } |
