mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-23 23:51:58 +00:00
ISS-650 Fix PYTHONPATH appearing in prompt
- Modify prompt_dir function to set current_path based on pwd and replace $HOME with ~
This commit is contained in:
parent
17c069d25a
commit
43e766209b
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in a new issue