mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-03 04:20:01 +02:00
Fix for pwds with symlinks as a directory component
This commit is contained in:
parent
dda24a0a5b
commit
e9eebb60e6
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ function fish_like_pwd() {
|
||||||
until [[ (( ${#expn} == 1 )) || $dir = $expn || $i -gt 99 ]] do
|
until [[ (( ${#expn} == 1 )) || $dir = $expn || $i -gt 99 ]] do
|
||||||
(( i++ ))
|
(( i++ ))
|
||||||
part+=$dir[$i]
|
part+=$dir[$i]
|
||||||
expn=($(echo ${part}*(/)))
|
expn=($(echo ${part}*(-/)))
|
||||||
(( short )) && break
|
(( short )) && break
|
||||||
done
|
done
|
||||||
result+="/$part"
|
result+="/$part"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue