From b723800b801f8bfc1aa997eea1f03d4279f96f3e Mon Sep 17 00:00:00 2001 From: Christo Kotze Date: Fri, 23 Feb 2018 09:56:42 +0400 Subject: [PATCH] Fixed typo - ~= instead of != --- powerlevel9k.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 051ffb8f..d60219eb 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -766,7 +766,7 @@ prompt_dir() { for (( i=$POWERLEVEL9K_SHORTEN_DIR_LENGTH; i<$num; i++ )); do paths[$i+1]=$POWERLEVEL9K_SHORTEN_DELIMITER done - [[ $current_path ~= '~'* ]] && current_path="/" || current_path="" + [[ $current_path != '~'* ]] && current_path="/" || current_path="" current_path+="${(j:/:)paths}" fi fi