mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-25 13:30:07 +00:00
fix asdf, was broken by 1ad8e5759e
(#1409)
This commit is contained in:
parent
a3494a52d7
commit
c59720647a
1 changed files with 7 additions and 3 deletions
|
@ -5350,10 +5350,14 @@ function prompt_asdf() {
|
|||
|
||||
local -A versions
|
||||
local -a stat
|
||||
zstat -A stat +mtime ~ 2>/dev/null || return
|
||||
local dirs=($_p9k__parent_dirs ~)
|
||||
local mtimes=($_p9k__parent_mtimes $stat[1])
|
||||
local -i has_global
|
||||
local dirs=($_p9k__parent_dirs)
|
||||
local mtimes=($_p9k__parent_mtimes)
|
||||
if [[ $dirs[-1] != ~ ]]; then
|
||||
zstat -A stat +mtime ~ 2>/dev/null || return
|
||||
dirs+=(~)
|
||||
mtimes+=($stat[1])
|
||||
fi
|
||||
|
||||
local elem
|
||||
for elem in ${(@)${:-{1..$#dirs}}/(#m)*/${${:-$MATCH:$_p9k__asdf_dir2files[$dirs[MATCH]]}#$MATCH:$mtimes[MATCH]:}}; do
|
||||
|
|
Loading…
Reference in a new issue