aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorChristo Kotze <onaforeignshore@hotmail.co.uk>2018-02-18 15:22:59 +0300
committerChristo Kotze <onaforeignshore@hotmail.co.uk>2018-02-18 15:22:59 +0300
commit4f1da4a64dcbd0923d591ffda50ce1f5d2870ce2 (patch)
treee007e6de2fbffb2d52c26a53b5750ab25e4854f7 /powerlevel9k.zsh-theme
parent9a3dd6bf253a5cd1171d06e6c74a537423e4bebb (diff)
Changed current_dir - Test Travis response
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme5
1 files changed, 3 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index d5db242f..2e483844 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -723,13 +723,14 @@ set_default POWERLEVEL9K_DIR_PATH_HIGHLIGHT_BOLD false
# * $1 Alignment: string - left|right
# * $2 Index: integer
prompt_dir() {
- local current_dir="$(print -P "%~")"
+ local current_dir="$(echo $PWD)"
+ current_dir=${current_dir//$HOME/"~"}
local paths
[[ current_dir != "/" ]] && paths=(${(s:/:)current_dir}) # only split if not root folder
local cur_path cur_short_path directory dir_length cur_dir
if [[ -n "$POWERLEVEL9K_SHORTEN_DIR_LENGTH" || "$POWERLEVEL9K_SHORTEN_STRATEGY" == "truncate_with_folder_marker" ]]; then
- set_default POWERLEVEL9K_SHORTEN_DELIMITER $'\u2026'
+ set_default POWERLEVEL9K_SHORTEN_DELIMITER "\u2026"
local delim=$(echo -n $POWERLEVEL9K_SHORTEN_DELIMITER) # convert delimiter from unicode to literal character if required
case "$POWERLEVEL9K_SHORTEN_STRATEGY" in