aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-10-20 22:30:43 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-10-20 22:30:43 +0300
commit7a2bd8ffa8cb677e704660b2e69218688ac99819 (patch)
tree12ab4d586008bbd46e66f8cef5f97a8694c9949b /internal/p10k.zsh
parentbb7b755c25bd743980696c26c6dab4fd5372e838 (diff)
workaround for a bug in tilix: $COLUMNS is incorrect in the new shell immediately after splitting; it becomes correct after forking
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 1d4142d3..3e1c0091 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -3490,7 +3490,7 @@ _p9k_set_instant_prompt() {
RPROMPT=$saved_rprompt
}
-typeset -gri __p9k_instant_prompt_version=4
+typeset -gri __p9k_instant_prompt_version=5
_p9k_dump_instant_prompt() {
local user=${(%):-%n}
@@ -3536,7 +3536,8 @@ _p9k_dump_instant_prompt() {
local -a _p9k_t=("${(@ps:$us:)${tail%%$rs*}}")'
(( __p9k_ksh_arrays )) && >&$fd print -r -- ' setopt ksh_arrays'
(( __p9k_sh_glob )) && >&$fd print -r -- ' setopt sh_glob'
- >&$fd print -r -- ' typeset -ga __p9k_used_instant_prompt=("${(@e)_p9k_t[-3,-1]}")'
+ >&$fd print -r -- ' /bin/true
+ typeset -ga __p9k_used_instant_prompt=("${(@e)_p9k_t[-3,-1]}")'
(( __p9k_ksh_arrays )) && >&$fd print -r -- ' unsetopt ksh_arrays'
(( __p9k_sh_glob )) && >&$fd print -r -- ' unsetopt sh_glob'
>&$fd print -r -- '