summaryrefslogtreecommitdiff
path: root/powerlevel10k.zsh-theme
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-02-02 00:03:42 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-02-02 00:03:42 +0300
commiteb9da89ad9a8bd886e43c7f1d907495c5a48acc5 (patch)
treecea0ce149c6f9a2c2b11e05f92e6a65f6773defb /powerlevel10k.zsh-theme
parentc08d1e846bd944d7e73a578c67fc63aa893ae888 (diff)
quote $foo when running with unknown options; fixes #453
Diffstat (limited to 'powerlevel10k.zsh-theme')
-rw-r--r--powerlevel10k.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel10k.zsh-theme b/powerlevel10k.zsh-theme
index c81da2f9..fd01648a 100644
--- a/powerlevel10k.zsh-theme
+++ b/powerlevel10k.zsh-theme
@@ -26,7 +26,7 @@
[[ -z $_p9k_locale ]] || local LC_ALL=$_p9k_locale'
() {
- eval $__p9k_intro
+ eval "$__p9k_intro"
if (( $+__p9k_sourced )); then
(( $+functions[_p9k_setup] )) && _p9k_setup
return 0
@@ -35,7 +35,7 @@
if [[ $__p9k_dump_file != $__p9k_instant_prompt_dump_file ]] && (( ! $+functions[_p9k_preinit] )) && source $__p9k_dump_file 2>/dev/null && (( $+functions[_p9k_preinit] )); then
_p9k_preinit
fi
- typeset -gr __p9k_sourced=3
+ typeset -gr __p9k_sourced=4
if [[ -w $__p9k_root_dir && -w $__p9k_root_dir/internal && -w $__p9k_root_dir/gitstatus && ${(%):-%#} == % ]]; then
local f
for f in $__p9k_root_dir/{powerlevel9k.zsh-theme,powerlevel10k.zsh-theme,internal/p10k.zsh,internal/icons.zsh,internal/configure.zsh,internal/worker.zsh,internal/parser.zsh,gitstatus/gitstatus.plugin.zsh}; do