diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-09-20 12:22:14 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-09-20 12:22:14 +0300 |
commit | 0067e0d4a1148593e3d74640579e555439ee9426 (patch) | |
tree | d4eb7c579693d5bfb29abac5ba13371309ca6bf9 /powerlevel9k.zsh-theme | |
parent | 5f15731c6ae0380fadcb55cc3d213c577cfd3a8d (diff) |
survive emulate sh; fixes #226
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 6e4969d7..f44e6870 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -17,11 +17,11 @@ else local __p9k_restore_aliases=0 fi -typeset -g __p9k_root_dir=${POWERLEVEL9K_INSTALLATION_DIR:-${${(%):-%x}:A:h}} +typeset -g __p9k_root_dir="${POWERLEVEL9K_INSTALLATION_DIR:-${${(%):-%x}:A:h}}" () { emulate -L zsh - setopt no_hist_expand extended_glob no_prompt_{bang,subst} prompt_{cr,percent,sp} + setopt no_hist_expand extended_glob no_prompt_bang no_prompt_subst prompt_percent if (( $+__p9k_sourced )); then prompt_powerlevel9k_setup return |