1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-23 15:41:57 +00:00

Merge pull request #260 from thuandt/python-icon

PYTHON ICON for virtualenv prompt
This commit is contained in:
Ben Hilburn 2016-05-27 11:53:02 -04:00
commit 41888bf2a9
2 changed files with 7 additions and 4 deletions

View file

@ -69,7 +69,8 @@ case $POWERLEVEL9K_MODE in
VCS_REMOTE_BRANCH_ICON ' '$'\UE804 ' #  VCS_REMOTE_BRANCH_ICON ' '$'\UE804 ' # 
VCS_GIT_ICON $'\UE20E ' #  VCS_GIT_ICON $'\UE20E ' # 
VCS_HG_ICON $'\UE1C3 ' #  VCS_HG_ICON $'\UE1C3 ' # 
RUST_ICON '' RUST_ICON ''
PYTHON_ICON ''
) )
;; ;;
'awesome-fontconfig') 'awesome-fontconfig')
@ -122,6 +123,7 @@ case $POWERLEVEL9K_MODE in
VCS_GIT_ICON $'\UF113 ' #  VCS_GIT_ICON $'\UF113 ' # 
VCS_HG_ICON $'\UF0C3 ' #  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_REMOTE_BRANCH_ICON $'\u2192' # →
VCS_GIT_ICON '' VCS_GIT_ICON ''
VCS_HG_ICON '' VCS_HG_ICON ''
RUST_ICON '' RUST_ICON ''
PYTHON_ICON ''
) )
;; ;;
esac esac

View file

@ -931,7 +931,7 @@ prompt_vi_mode() {
prompt_virtualenv() { prompt_virtualenv() {
local virtualenv_path="$VIRTUAL_ENV" local virtualenv_path="$VIRTUAL_ENV"
if [[ -n "$virtualenv_path" && "$VIRTUAL_ENV_DISABLE_PROMPT" != true ]]; then 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 fi
} }