From ec25e3b3af394991b36e86dadd1378e449790df4 Mon Sep 17 00:00:00 2001 From: "Thuan (Duong Tien)" Date: Wed, 4 May 2016 21:16:16 +0700 Subject: [PATCH 1/2] [ADD] PYTHON_ICON --- functions/icons.zsh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/functions/icons.zsh b/functions/icons.zsh index 6de09ee8..b4a1f32f 100644 --- a/functions/icons.zsh +++ b/functions/icons.zsh @@ -69,7 +69,8 @@ case $POWERLEVEL9K_MODE in VCS_REMOTE_BRANCH_ICON ' '$'\UE804 ' #  VCS_GIT_ICON $'\UE20E ' #  VCS_HG_ICON $'\UE1C3 ' #  - RUST_ICON '' + RUST_ICON '' + PYTHON_ICON '' ) ;; 'awesome-fontconfig') @@ -121,7 +122,8 @@ case $POWERLEVEL9K_MODE in VCS_REMOTE_BRANCH_ICON ' '$'\UF204 ' #  VCS_GIT_ICON $'\UF113 ' #  VCS_HG_ICON $'\UF0C3 ' #  - RUST_ICON $'\UE6A8' #  + RUST_ICON $'\UE6A8' #  + PYTHON_ICON $'\UE63C' #  ) ;; *) @@ -173,7 +175,8 @@ case $POWERLEVEL9K_MODE in VCS_REMOTE_BRANCH_ICON $'\u2192' # → VCS_GIT_ICON '' VCS_HG_ICON '' - RUST_ICON '' + RUST_ICON '' + PYTHON_ICON '' ) ;; esac From 086cd1fdcf17f722602a72718520582556ceb18e Mon Sep 17 00:00:00 2001 From: "Thuan (Duong Tien)" Date: Wed, 4 May 2016 21:48:46 +0700 Subject: [PATCH 2/2] [ADD] python icon in virtualenv prompt --- powerlevel9k.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index bf313b85..285f4f02 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -930,7 +930,7 @@ prompt_vi_mode() { prompt_virtualenv() { local virtualenv_path="$VIRTUAL_ENV" if [[ -n "$virtualenv_path" && "$VIRTUAL_ENV_DISABLE_PROMPT" != true ]]; then - "$1_prompt_segment" "$0" "$2" "blue" "$DEFAULT_COLOR" "($(basename "$virtualenv_path"))" + "$1_prompt_segment" "$0" "$2" "blue" "$DEFAULT_COLOR" "$(basename "$virtualenv_path")" 'PYTHON_ICON' fi }