aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-11-08 11:32:32 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-11-08 11:32:32 +0300
commit184c217c479c535bea5a9f5ad5fc6529045310cc (patch)
treedb47ee2b65525527604d0195c69f8f25bbeca3ca /internal
parentdfa7b1578fcd7fb187980ccc7e279e4f42d6f1cb (diff)
add debug logging for #315
Diffstat (limited to 'internal')
-rw-r--r--internal/p10k.zsh7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 1095fad4..81d845e9 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -3926,6 +3926,9 @@ function _p9k_clear_instant_prompt() {
unset __p9k_fd_1 __p9k_fd_2
if [[ -s $__p9k_instant_prompt_output ]]; then
{
+ if [[ $POWERLEVEL9K_DEBUG_ISSUE_315 == true ]]; then
+ exec 2>&1
+ fi
local content
[[ $_POWERLEVEL9K_INSTANT_PROMPT == verbose ]] && content="$(<$__p9k_instant_prompt_output)"
local mark="${PROMPT_EOL_MARK-%B%S%#%s%b}"
@@ -3977,6 +3980,10 @@ function _p9k_clear_instant_prompt() {
fi
cat $__p9k_instant_prompt_output
echo -nE - $sp
+ if [[ $POWERLEVEL9K_DEBUG_ISSUE_315 == true ]]; then
+ ls -l $__p9k_instant_prompt_output
+ (( $+commands[hexdump] )) && hexdump -c $__p9k_instant_prompt_output
+ fi
zf_rm -f -- $__p9k_instant_prompt_output
} 2>/dev/null
else