diff options
author | Christo Kotze <onaforeignshore@hotmail.co.uk> | 2018-02-14 11:15:56 +0300 |
---|---|---|
committer | Christo Kotze <onaforeignshore@hotmail.co.uk> | 2018-02-14 11:15:56 +0300 |
commit | 9c6330624e1597d337b9aae2dc8e350b5e90a87a (patch) | |
tree | e39599ff7adfd0fd6dd484f4b54f8d94629783fd /powerlevel9k.zsh-theme | |
parent | 2e417ec510c7f6a26eb332691d9baf7d91e8362d (diff) |
Cleaned up DIR_PATH_HIGHLIGHT code
Removed double call to %F and changed $x variables to ${x} for
consistency.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index b682b0ea..3454a673 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -874,15 +874,15 @@ prompt_dir() { if [[ -n ${POWERLEVEL9K_DIR_PATH_HIGHLIGHT_FOREGROUND} ]]; then if [[ $path_opt == "/" || $path_opt == "~" || "${(L)POWERLEVEL9K_DIR_OMIT_FIRST_CHARACTER}" == "true" ]]; then - current_path="$bld%F{$POWERLEVEL9K_DIR_PATH_HIGHLIGHT_FOREGROUND}$current_path%F{$dir_state_foreground}%b%F{$dir_state_foreground}" + current_path="${bld}%F{$POWERLEVEL9K_DIR_PATH_HIGHLIGHT_FOREGROUND}${current_path}%b%F{$dir_state_foreground}" else - current_path="${dir_name}/$bld%F{$POWERLEVEL9K_DIR_PATH_HIGHLIGHT_FOREGROUND}${base_name}%b%F{$dir_state_foreground}" + current_path="${dir_name}/${bld}%F{$POWERLEVEL9K_DIR_PATH_HIGHLIGHT_FOREGROUND}${base_name}%b%F{$dir_state_foreground}" fi else if [[ $path_opt == "/" || $path_opt == "~" || "${(L)POWERLEVEL9K_DIR_OMIT_FIRST_CHARACTER}" == "true" ]]; then - current_path="$bld%F{$dir_state_foreground}$current_path%b%F{$dir_state_foreground}" + current_path="${bld}${current_path}%b%F{$dir_state_foreground}" else - current_path="%F{$dir_state_foreground}${dir_name}/$bld${base_name}%b%F{$dir_state_foreground}" + current_path="${dir_name}/${bld}${base_name}%b%F{$dir_state_foreground}" fi fi |