From d40b6cf928d8e2f99ea9a1e863bd678e20e7c2ec Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Mon, 18 Sep 2017 09:18:20 -0400 Subject: [PATCH] [prompt] pass prompt prams from zprompt_theme While normally it's a good thing that zsh doesn't auto-expand on spaces, in this case we want to split on spaces into distinct words, that way the values are passed to `prompt` in multiple params. Fixes #178 --- modules/prompt/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/prompt/init.zsh b/modules/prompt/init.zsh index abe443c..f3f5e8d 100644 --- a/modules/prompt/init.zsh +++ b/modules/prompt/init.zsh @@ -4,5 +4,5 @@ if [[ ! ${TERM} == (linux|*bsd*|dumb) ]] && (( ${+zprompt_theme} )); then autoload -Uz promptinit && promptinit - prompt ${zprompt_theme} + prompt ${(ps: :)${zprompt_theme}} fi