summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2017-03-08 23:01:53 +0300
committerGitHub <noreply@github.com>2017-03-08 23:01:53 +0300
commit622c04eee3452d753024a488ed4c1b3539e8389f (patch)
treeda9f4c1082d329eb186b562726f20b79b802ec75 /powerlevel9k.zsh-theme
parentecd180a285ab5c594dd143674b2c49baf10002da (diff)
parent136a5217e3e3edda968ca191777ffb0408fffa10 (diff)
Merge branch 'next' into truncate_composer_json
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 b585911f..f8367e85 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -664,7 +664,7 @@ prompt_dir() {
break;
fi
done
-
+
local packageName=$(jq '.name' ${pkgFile} 2> /dev/null \
|| node -e 'console.log(require(process.argv[1]).name);' ${pkgFile} 2>/dev/null \
|| cat "${pkgFile}" 2> /dev/null | grep -m 1 "\"name\"" | awk -F ':' '{print $2}' | awk -F '"' '{print $2}' 2>/dev/null \