Skip to content

Commit

Permalink
ISS-650 Fix PYTHONPATH appearing in prompt
Browse files Browse the repository at this point in the history
- Modify prompt_dir function to set current_path based on pwd and
replace $HOME with ~
  • Loading branch information
Brian Moran committed Oct 27, 2017
1 parent 17c069d commit 43e7662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powerlevel9k.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 43e7662

Please sign in to comment.