From 8ba9621f4833c9684c9fa77c1417fc6fae1eaced Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Sun, 1 Oct 2017 20:35:47 -0500 Subject: [PATCH] [prompt] Add sp to the prompt_opts array in our custom themes. With zsh starting at version 5.4, when using the `prompt_opts` array, `nopromptsp` will be set unless the array contains a `sp`. This was introduced in zsh at https://github.com/zsh-users/zsh/commit/43e55a9bcd2c90124a751f2597d2f33cb6e3c042#diff-bb10d67e7a8561b66a53a805f3c77a40R233 Fixes #209 --- modules/prompt/themes/eriner.zsh-theme | 2 +- modules/prompt/themes/gitster.zsh-theme | 2 +- modules/prompt/themes/magicmace.zsh-theme | 2 +- modules/prompt/themes/minimal.zsh-theme | 2 +- modules/prompt/themes/steeef.zsh-theme | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/prompt/themes/eriner.zsh-theme b/modules/prompt/themes/eriner.zsh-theme index 8bbd4ee..cb43a68 100644 --- a/modules/prompt/themes/eriner.zsh-theme +++ b/modules/prompt/themes/eriner.zsh-theme @@ -89,7 +89,7 @@ prompt_eriner_setup() { autoload -Uz colors && colors autoload -Uz add-zsh-hook - prompt_opts=(cr percent subst) + prompt_opts=(cr percent sp subst) add-zsh-hook precmd prompt_eriner_precmd diff --git a/modules/prompt/themes/gitster.zsh-theme b/modules/prompt/themes/gitster.zsh-theme index f98580f..c388229 100644 --- a/modules/prompt/themes/gitster.zsh-theme +++ b/modules/prompt/themes/gitster.zsh-theme @@ -26,7 +26,7 @@ prompt_gitster_setup() { autoload -Uz colors && colors autoload -Uz add-zsh-hook - prompt_opts=(cr percent subst) + prompt_opts=(cr percent sp subst) add-zsh-hook precmd prompt_gitster_precmd diff --git a/modules/prompt/themes/magicmace.zsh-theme b/modules/prompt/themes/magicmace.zsh-theme index 038d46e..ace8135 100644 --- a/modules/prompt/themes/magicmace.zsh-theme +++ b/modules/prompt/themes/magicmace.zsh-theme @@ -53,7 +53,7 @@ prompt_magicmace_setup() { autoload -Uz colors && colors autoload -Uz add-zsh-hook - prompt_opts=(cr percent subst) + prompt_opts=(cr percent sp subst) add-zsh-hook precmd prompt_magicmace_precmd diff --git a/modules/prompt/themes/minimal.zsh-theme b/modules/prompt/themes/minimal.zsh-theme index d88cd98..de10543 100644 --- a/modules/prompt/themes/minimal.zsh-theme +++ b/modules/prompt/themes/minimal.zsh-theme @@ -67,7 +67,7 @@ prompt_minimal_setup() { autoload -Uz colors && colors autoload -Uz add-zsh-hook - prompt_opts=(cr percent subst) + prompt_opts=(cr percent sp subst) add-zsh-hook precmd prompt_minimal_precmd diff --git a/modules/prompt/themes/steeef.zsh-theme b/modules/prompt/themes/steeef.zsh-theme index 0f78555..ad33d97 100644 --- a/modules/prompt/themes/steeef.zsh-theme +++ b/modules/prompt/themes/steeef.zsh-theme @@ -41,7 +41,7 @@ prompt_steeef_setup() { autoload -Uz add-zsh-hook autoload -Uz colors && colors - prompt_opts=(cr percent subst) + prompt_opts=(cr percent sp subst) add-zsh-hook precmd prompt_steeef_precmd