summaryrefslogtreecommitdiff
path: root/powerlevel10k.zsh-theme
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-05-06 22:05:01 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-05-06 22:05:01 +0300
commit5d41bf4703bea4a19cbb39ea913dc898b228fdf3 (patch)
treea5a2f5492f6efa33c35f78d8fd1149e1a242a0b1 /powerlevel10k.zsh-theme
parentc7efd5badb2f989e8fadbda31aedb902c96b6703 (diff)
block SIGINT while powerlevel10k is running
Diffstat (limited to 'powerlevel10k.zsh-theme')
-rw-r--r--powerlevel10k.zsh-theme4
1 files changed, 3 insertions, 1 deletions
diff --git a/powerlevel10k.zsh-theme b/powerlevel10k.zsh-theme
index d8a30ba0..1187d78c 100644
--- a/powerlevel10k.zsh-theme
+++ b/powerlevel10k.zsh-theme
@@ -21,6 +21,8 @@
(( $+__p9k_intro )) || {
# Note: leading spaces before `local` are important. Otherwise Antigen will remove `local` (!!!).
typeset -gr __p9k_intro_base='emulate -L zsh -o no_hist_expand -o extended_glob -o no_prompt_bang -o prompt_percent -o no_prompt_subst -o no_aliases -o no_bg_nice -o typeset_silent
+ trap "" INT
+ trap "trap ${(q)__p9k_trapint:-} INT" EXIT
local -a match mbegin mend
local -i MBEGIN MEND OPTIND
local MATCH OPTARG IFS=$'\'' \t\n\0'\'
@@ -54,7 +56,7 @@ function _p9k_init_locale() {
if [[ $__p9k_dump_file != $__p9k_instant_prompt_dump_file ]] && (( ! $+functions[_p9k_preinit] )) && source $__p9k_dump_file 2>/dev/null && (( $+functions[_p9k_preinit] )); then
_p9k_preinit
fi
- typeset -gr __p9k_sourced=10
+ typeset -gr __p9k_sourced=11
if [[ $ZSH_VERSION == (5.<1->*|<6->.*) ]]; then
if [[ -w $__p9k_root_dir && -w $__p9k_root_dir/internal && -w $__p9k_root_dir/gitstatus ]]; then
local f