Skip to content

Commit

Permalink
Some notes
Browse files Browse the repository at this point in the history
  • Loading branch information
agkozak committed Sep 11, 2021
1 parent 413ec54 commit 9d1e9be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agkozak-zsh-prompt.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ prompt_agkozak-zsh-prompt_setup() {
(( $+VSCODE_PID )) && ZLE_RPROMPT_INDENT=6
fi

# For promptinit
# For promptinit (introduced in Zsh v5.4)
(( ${+functions[prompt_cleanup]} )) &&
prompt_cleanup _agkozak_prompt_cleanup

Expand Down Expand Up @@ -1119,6 +1119,8 @@ agkozak-zsh-prompt_plugin_unload() {

############################################################
# promptinit cleanup function
#
# prompt_cleanup was introduced in Zsh v5.4
############################################################
_agkozak_prompt_cleanup() {
setopt LOCAL_OPTIONS NO_KSH_ARRAYS NO_SH_WORD_SPLIT
Expand Down

0 comments on commit 9d1e9be

Please sign in to comment.