Skip to content

Commit

Permalink
prompt: add sp option to prompt_setup functions
Browse files Browse the repository at this point in the history
This was a change in zsh 5.4.1 where prompt_sp is now reset on calls to
prompt, unlike previous behavior where it was set by default. This
restores the previous default behavior.

Refs #1423, but is not a complete fix because we need to wait for
external prompts to update as well.
  • Loading branch information
belak committed Aug 10, 2017
1 parent 5e295b0 commit 730fc46
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion modules/prompt/functions/prompt_cloud_setup
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function prompt_cloud_preview {
function prompt_cloud_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)
prompt_opts=(cr percent sp subst)

# Set the theme prefix to a cloud or to the user's given characters.
if [[ -n "$1" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion modules/prompt/functions/prompt_damoekri_setup
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ prompt_damoekri_precmd() {
function prompt_damoekri_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)
prompt_opts=(cr percent sp subst)

# Load required functions.
autoload -Uz add-zsh-hook
Expand Down
2 changes: 1 addition & 1 deletion modules/prompt/functions/prompt_giddie_setup
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function prompt_giddie_precmd {
function prompt_giddie_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)
prompt_opts=(cr percent sp subst)

# Load required functions.
autoload -Uz vcs_info
Expand Down
2 changes: 1 addition & 1 deletion modules/prompt/functions/prompt_kylewest_setup
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function prompt_kylewest_precmd {
function prompt_kylewest_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)
prompt_opts=(cr percent sp subst)

# Load required functions.
autoload -Uz add-zsh-hook
Expand Down
2 changes: 1 addition & 1 deletion modules/prompt/functions/prompt_minimal_setup
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function prompt_minimal_precmd {
function prompt_minimal_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)
prompt_opts=(cr percent sp subst)

# Load required functions.
autoload -Uz add-zsh-hook
Expand Down
2 changes: 1 addition & 1 deletion modules/prompt/functions/prompt_nicoulaj_setup
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function prompt_nicoulaj_precmd {
function prompt_nicoulaj_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)
prompt_opts=(cr percent sp subst)

# Load required functions.
autoload -Uz add-zsh-hook
Expand Down
2 changes: 1 addition & 1 deletion modules/prompt/functions/prompt_paradox_setup
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function prompt_paradox_preexec {
function prompt_paradox_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)
prompt_opts=(cr percent sp subst)

# Load required functions.
autoload -Uz add-zsh-hook
Expand Down
2 changes: 1 addition & 1 deletion modules/prompt/functions/prompt_peepcode_setup
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function prompt_peepcode_precmd {
function prompt_peepcode_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)
prompt_opts=(cr percent sp subst)

# Load required functions.
autoload -Uz add-zsh-hook
Expand Down
2 changes: 1 addition & 1 deletion modules/prompt/functions/prompt_skwp_setup
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function prompt_skwp_precmd {
function prompt_skwp_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)
prompt_opts=(cr percent sp subst)

# Load required functions.
autoload -Uz add-zsh-hook
Expand Down
2 changes: 1 addition & 1 deletion modules/prompt/functions/prompt_smiley_setup
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function prompt_smiley_precmd {

function prompt_smiley_setup {
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(percent subst)
prompt_opts=(percent sp subst)

# Add hook for calling git-info before each command.
add-zsh-hook precmd prompt_smiley_precmd
Expand Down
2 changes: 1 addition & 1 deletion modules/prompt/functions/prompt_sorin_setup
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function prompt_sorin_precmd {
function prompt_sorin_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)
prompt_opts=(cr percent sp subst)
_prompt_sorin_precmd_async_pid=0
_prompt_sorin_precmd_async_data=$(mktemp "${TMPDIR:-/tmp}/sorin-prompt-async-XXXXXXXXXX")

Expand Down
2 changes: 1 addition & 1 deletion modules/prompt/functions/prompt_steeef_setup
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function prompt_steeef_precmd {
function prompt_steeef_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)
prompt_opts=(cr percent sp subst)

# Load required functions.
autoload -Uz add-zsh-hook
Expand Down

0 comments on commit 730fc46

Please sign in to comment.