aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2021-05-22 12:57:13 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2021-05-22 12:57:13 +0300
commit1ad8e5759ecd41619746a775d9bc9d2902c5c90e (patch)
tree333d7e0ed5940f6d73131bc8fb8c6dcfca1a1666 /internal/p10k.zsh
parent4d2346da0ae352235bfafc7cc8774ce60da7e70b (diff)
when searching for files in ancestor directories, do match in $HOME (#1376)
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 0d4db86a..7d2ade70 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -204,15 +204,15 @@ function _p9k_fetch_cwd() {
_p9k__cwd_a=${${_p9k__cwd:A}:-.}
case $_p9k__cwd in
- ~|/|.)
+ /|.)
_p9k__parent_dirs=()
_p9k__parent_mtimes=()
_p9k__parent_mtimes_i=()
_p9k__parent_mtimes_s=
return
;;
- ~/*)
- local parent=~/
+ ~|~/*)
+ local parent=${${${:-~/..}:a}%/}/
local parts=(${(s./.)_p9k__cwd#$parent})
;;
*)
@@ -255,7 +255,7 @@ function _p9k_glob() {
#
# Returns index within _p9k__parent_dirs or 0 if there is no match.
#
-# Pattern cannot have slashes. Never matches in / or ~. Search stops before reaching / or ~.
+# Search stops before reaching ~/../ or / and never matches in those directories.
#
# Example: _p9k_upglob '*.csproj'
function _p9k_upglob() {
@@ -8046,7 +8046,7 @@ _p9k_must_init() {
[[ $sig == $_p9k__param_sig ]] && return 1
_p9k_deinit
fi
- _p9k__param_pat=$'v121\1'${(q)ZSH_VERSION}$'\1'${(q)ZSH_PATCHLEVEL}$'\1'
+ _p9k__param_pat=$'v122\1'${(q)ZSH_VERSION}$'\1'${(q)ZSH_PATCHLEVEL}$'\1'
_p9k__param_pat+=$'${#parameters[(I)POWERLEVEL9K_*]}\1${(%):-%n%#}\1$GITSTATUS_LOG_LEVEL\1'
_p9k__param_pat+=$'$GITSTATUS_ENABLE_LOGGING\1$GITSTATUS_DAEMON\1$GITSTATUS_NUM_THREADS\1'
_p9k__param_pat+=$'$GITSTATUS_CACHE_DIR\1$GITSTATUS_AUTO_INSTALL\1${ZLE_RPROMPT_INDENT:-1}\1'