mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 20:57:59 +00:00
Separate unsetopt from setopt for clarity.
This commit is contained in:
parent
9d27df2050
commit
62fc8d802e
@ -6,13 +6,13 @@ function +vi-git-status() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function prompt_minimal_precmd () {
|
function prompt_minimal_precmd () {
|
||||||
setopt NO_XTRACE NO_KSHARRAYS LOCAL_OPTIONS
|
|
||||||
vcs_info
|
vcs_info
|
||||||
}
|
}
|
||||||
|
|
||||||
function prompt_minimal_setup() {
|
function prompt_minimal_setup() {
|
||||||
setopt NO_XTRACE NO_KSHARRAYS LOCAL_OPTIONS
|
setopt LOCAL_OPTIONS
|
||||||
prompt_opts=(cr subst percent)
|
unsetopt XTRACE KSH_ARRAYS
|
||||||
|
prompt_opts=(cr percent subst)
|
||||||
|
|
||||||
autoload -Uz add-zsh-hook
|
autoload -Uz add-zsh-hook
|
||||||
autoload -Uz vcs_info
|
autoload -Uz vcs_info
|
||||||
|
@ -11,8 +11,9 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
function prompt_nicoulaj_setup() {
|
function prompt_nicoulaj_setup() {
|
||||||
setopt NO_XTRACE NO_KSHARRAYS LOCAL_OPTIONS
|
setopt LOCAL_OPTIONS
|
||||||
prompt_opts=(cr subst percent)
|
unsetopt XTRACE KSH_ARRAYS
|
||||||
|
prompt_opts=(cr percent subst)
|
||||||
|
|
||||||
# Load required modules.
|
# Load required modules.
|
||||||
autoload -Uz add-zsh-hook
|
autoload -Uz add-zsh-hook
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
# SCREENSHOT: http://i.imgur.com/aipDQ.png
|
# SCREENSHOT: http://i.imgur.com/aipDQ.png
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
function prompt_sorin_precmd () {
|
function prompt_sorin_precmd () {
|
||||||
setopt NO_XTRACE NO_KSHARRAYS LOCAL_OPTIONS
|
setopt LOCAL_OPTIONS
|
||||||
|
unsetopt XTRACE KSH_ARRAYS
|
||||||
|
|
||||||
if (( $+functions[git-info] )); then
|
if (( $+functions[git-info] )); then
|
||||||
git-info
|
git-info
|
||||||
@ -14,8 +15,9 @@ function prompt_sorin_precmd () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function prompt_sorin_setup() {
|
function prompt_sorin_setup() {
|
||||||
setopt NO_XTRACE NO_KSHARRAYS LOCAL_OPTIONS
|
setopt LOCAL_OPTIONS
|
||||||
prompt_opts=(cr subst percent)
|
unsetopt XTRACE KSH_ARRAYS
|
||||||
|
prompt_opts=(cr percent subst)
|
||||||
|
|
||||||
autoload -Uz add-zsh-hook
|
autoload -Uz add-zsh-hook
|
||||||
add-zsh-hook precmd prompt_sorin_precmd
|
add-zsh-hook precmd prompt_sorin_precmd
|
||||||
|
@ -45,8 +45,9 @@ function prompt_steeef_chpwd() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function prompt_steeef_setup() {
|
function prompt_steeef_setup() {
|
||||||
setopt NO_XTRACE NO_KSHARRAYS LOCAL_OPTIONS
|
setopt LOCAL_OPTIONS
|
||||||
prompt_opts=(cr subst percent)
|
unsetopt XTRACE KSH_ARRAYS
|
||||||
|
prompt_opts=(cr percent subst)
|
||||||
|
|
||||||
autoload -Uz add-zsh-hook
|
autoload -Uz add-zsh-hook
|
||||||
autoload -Uz vcs_info
|
autoload -Uz vcs_info
|
||||||
|
Loading…
Reference in New Issue
Block a user