Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1158 from wrboyce/truncation-fix
Browse files Browse the repository at this point in the history
[Bugfix] dir: Fix package name path truncation inside home dir
  • Loading branch information
dritter authored Mar 1, 2019
2 parents f7ff6af + a3b3325 commit 39d631c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions segments/dir/dir.p9k
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ prompt_dir() {
local -a markedFolders
markedFolders=( $(__p9k_upsearch "(${(j:|:)P9K_DIR_PACKAGE_FILES})") )
local package_path="${markedFolders[1]}"
[[ ${(L)P9K_DIR_PATH_ABSOLUTE} != "true" ]] && package_path=${package_path//$HOME/"~"}

# Replace the shortest possible match of the marked folder from
# the current path. Remove the amount of characters up to the
Expand Down

0 comments on commit 39d631c

Please sign in to comment.