1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-16 17:50:09 +00:00

disable prompt_subst

This commit is contained in:
romkatv 2019-07-29 17:45:53 +02:00
parent 742ddb459f
commit d872930c5c

View file

@ -11,7 +11,7 @@ typeset -gr __p9k_root_dir_u=${${(q-)__p9k_root_dir}/#(#b)$HOME(|\/*)/'~'$match[
function _p9k_can_configure() { function _p9k_can_configure() {
emulate -L zsh emulate -L zsh
setopt err_return setopt err_return extended_glob no_prompt_{bang,subst} prompt_{cr,percent,sp}
[[ $1 == '-q' ]] && local -i q=1 || local -i q=0 [[ $1 == '-q' ]] && local -i q=1 || local -i q=0
function $0_error() { function $0_error() {
(( q )) || print -P "%1F[ERROR]%f %Bp9k_configure%b: $1" >&2 (( q )) || print -P "%1F[ERROR]%f %Bp9k_configure%b: $1" >&2