summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@deepsig.io>2017-11-02 21:38:20 +0300
committerBen Hilburn <bhilburn@deepsig.io>2017-11-02 21:38:20 +0300
commiteb2e1b0e96537f4b176b30ed74d623f979886dca (patch)
treed2a9af70c64359f26f8669e85685231a7d1b5d61 /powerlevel9k.zsh-theme
parent43ab3ebefd3f5c6392f747c2d62eafd30fd60e45 (diff)
parent948e7f5bff288dd0b91b1d37d13b2e9bb1592f00 (diff)
Merge branch 'master' into next
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 3d8a245f..a8293358 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -695,7 +695,7 @@ set_default POWERLEVEL9K_DIR_PATH_SEPARATOR "/"
set_default POWERLEVEL9K_HOME_FOLDER_ABBREVIATION "~"
set_default POWERLEVEL9K_DIR_SHOW_WRITABLE false
prompt_dir() {
- local current_path="$(print -P "%~")"
+ local current_path=$(pwd | sed -e "s,^$HOME,~,")
if [[ -n "$POWERLEVEL9K_SHORTEN_DIR_LENGTH" || "$POWERLEVEL9K_SHORTEN_STRATEGY" == "truncate_with_folder_marker" ]]; then
set_default POWERLEVEL9K_SHORTEN_DELIMITER $'\U2026'
@@ -1332,7 +1332,7 @@ powerlevel9k_vcs_init() {
prompt_vcs() {
VCS_WORKDIR_DIRTY=false
VCS_WORKDIR_HALF_DIRTY=false
- current_state=""
+ local current_state=""
# Actually invoke vcs_info manually to gather all information.
vcs_info
@@ -1451,6 +1451,7 @@ prompt_dropbox() {
# Main prompt
build_left_prompt() {
local index=1
+ local element
for element in "${POWERLEVEL9K_LEFT_PROMPT_ELEMENTS[@]}"; do
# Remove joined information in direct calls
element=${element%_joined}