aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2016-01-15 00:13:44 +0300
committerBen Hilburn <bhilburn@gmail.com>2016-01-15 00:13:44 +0300
commit94419f54a575944075a979f84dbfc981eae8a08a (patch)
tree42cc2296c8f1f83a458b367cceb3e8992284a8de /powerlevel9k.zsh-theme
parent22ebb0f5f53fb8a67cce9446275684a5211e7290 (diff)
parent88ed3c2378edee9f005d122182b1118d56a15c23 (diff)
Merge branch 'dritter-symlink_resolving_improvement' into next
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index c01c9a9d..119d31e2 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -51,7 +51,7 @@ fi
# If this theme is sourced as a symlink, we need to locate the true URL
if [[ -L $0 ]]; then
# 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
# Script is a file
filename="$0"