From 3b2a2bb0cd312608626c9d4ed85e017ea998de73 Mon Sep 17 00:00:00 2001 From: "George D. Plymale II" Date: Tue, 24 Oct 2017 02:00:11 -0400 Subject: [PATCH 1/3] remove weird glyphs in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4e82b036..7c1974de 100644 --- a/README.md +++ b/README.md @@ -436,8 +436,8 @@ POWERLEVEL9K_HOST_TEMPLATE="%2m" By default, LOCAL hosts will show the host icon and remote hosts will show the SSH icon. You can override them by setting ``` -POWERLEVEL9K_HOST_ICON="\uF109 " #  -POWERLEVEL9K_SSH_ICON="\uF489 " #  +POWERLEVEL9K_HOST_ICON="\uF109 " +POWERLEVEL9K_SSH_ICON="\uF489 " ``` From 43e766209b0e6061bbf62c029098cd92a9408c1f Mon Sep 17 00:00:00 2001 From: Brian Moran Date: Fri, 27 Oct 2017 12:11:48 -0400 Subject: [PATCH 2/3] ISS-650 Fix PYTHONPATH appearing in prompt - Modify prompt_dir function to set current_path based on pwd and replace $HOME with ~ --- powerlevel9k.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index b03a9374..5ba9e43d 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -691,7 +691,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' From 47c7077cde833217db8a4dadbabaf38e6ff490d3 Mon Sep 17 00:00:00 2001 From: Marc Hauptmann Date: Tue, 31 Oct 2017 16:47:21 +0100 Subject: [PATCH 3/3] declared variables as 'local' Prevents warning messages from zsh --- powerlevel9k.zsh-theme | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index f6646c63..3c173e9f 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -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 @@ -1434,6 +1434,7 @@ prompt_kubecontext() { # 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}