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 /internal/configure.zsh | |
parent | 5f15731c6ae0380fadcb55cc3d213c577cfd3a8d (diff) |
survive emulate sh; fixes #226
Diffstat (limited to 'internal/configure.zsh')
-rw-r--r-- | internal/configure.zsh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/configure.zsh b/internal/configure.zsh index ae24be34..202978f6 100644 --- a/internal/configure.zsh +++ b/internal/configure.zsh @@ -11,7 +11,7 @@ typeset -gr __p9k_root_dir_u=${${${(q)__p9k_root_dir}/#(#b)${(q)HOME}(|\/*)/'~'$ function _p9k_can_configure() { emulate -L zsh - setopt extended_glob no_prompt_{bang,subst} prompt_{cr,percent,sp} + setopt extended_glob no_prompt_{bang,subst} prompt_percent [[ $1 == '-q' ]] && local -i q=1 || local -i q=0 function $0_error() { (( q )) || print -rP "%1F[ERROR]%f %Bp10k configure%b: $1" >&2 @@ -59,7 +59,8 @@ function _p9k_can_configure() { } function p9k_configure() { - emulate -L zsh && setopt no_hist_expand extended_glob + emulate -L zsh + setopt no_hist_expand extended_glob ( local p=("${(@)parameters[(I)AWESOME_*|CODEPOINT_*]}") if (( $#p )); then |