mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-22 07:11:58 +00:00
Fixed error in coding
Shouldn't code when tired lol.
This commit is contained in:
parent
115b656790
commit
a699393d58
1 changed files with 1 additions and 2 deletions
|
@ -724,9 +724,8 @@ set_default POWERLEVEL9K_HOME_FOLDER_ABBREVIATION "~"
|
|||
set_default POWERLEVEL9K_DIR_PATH_HIGHLIGHT_BOLD false
|
||||
prompt_dir() {
|
||||
local current_path="$(print -P '%~')"
|
||||
local num_paths=(${(s:/:)current_path})
|
||||
local paths directory test_dir test_dir_length trunc_path threshhold
|
||||
(( ${#current_path} > 1 )) && paths=(${(s:/:)${current_path//"~\/"/}}) || paths=() # only split if not root/home folder
|
||||
(( ${#current_path} > 1 )) && num_paths=(${(s:/:)${current_path//"~\/"/}}) || paths=() # only split if not root/home folder
|
||||
if [[ -n "$POWERLEVEL9K_SHORTEN_DIR_LENGTH" || "$POWERLEVEL9K_SHORTEN_STRATEGY" == "truncate_with_folder_marker" ]]; then
|
||||
set_default POWERLEVEL9K_SHORTEN_DELIMITER "\u2026"
|
||||
local delim=$(echo -n $POWERLEVEL9K_SHORTEN_DELIMITER) # convert delimiter from unicode to literal character
|
||||
|
|
Loading…
Reference in a new issue