mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 05:40:07 +00:00
Merge branch 'dritter-symlink_resolving_improvement' into next
This commit is contained in:
commit
94419f54a5
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ fi
|
||||||
# If this theme is sourced as a symlink, we need to locate the true URL
|
# If this theme is sourced as a symlink, we need to locate the true URL
|
||||||
if [[ -L $0 ]]; then
|
if [[ -L $0 ]]; then
|
||||||
# Script is a symlink
|
# Script is a symlink
|
||||||
filename="$(realpath -P $0 2>/dev/null || readlink -f $0 2>/dev/null)"
|
filename="$(realpath -P $0 2>/dev/null || readlink -f $0 2>/dev/null || perl -MCwd=abs_path -le 'print abs_path readlink(shift);' $0 2>/dev/null)"
|
||||||
elif [[ -f $0 ]]; then
|
elif [[ -f $0 ]]; then
|
||||||
# Script is a file
|
# Script is a file
|
||||||
filename="$0"
|
filename="$0"
|
||||||
|
|
Loading…
Reference in a new issue