mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-12 19:18:28 +02:00
add debug logging for #315
This commit is contained in:
parent
dfa7b1578f
commit
184c217c47
@ -3926,6 +3926,9 @@ function _p9k_clear_instant_prompt() {
|
|||||||
unset __p9k_fd_1 __p9k_fd_2
|
unset __p9k_fd_1 __p9k_fd_2
|
||||||
if [[ -s $__p9k_instant_prompt_output ]]; then
|
if [[ -s $__p9k_instant_prompt_output ]]; then
|
||||||
{
|
{
|
||||||
|
if [[ $POWERLEVEL9K_DEBUG_ISSUE_315 == true ]]; then
|
||||||
|
exec 2>&1
|
||||||
|
fi
|
||||||
local content
|
local content
|
||||||
[[ $_POWERLEVEL9K_INSTANT_PROMPT == verbose ]] && content="$(<$__p9k_instant_prompt_output)"
|
[[ $_POWERLEVEL9K_INSTANT_PROMPT == verbose ]] && content="$(<$__p9k_instant_prompt_output)"
|
||||||
local mark="${PROMPT_EOL_MARK-%B%S%#%s%b}"
|
local mark="${PROMPT_EOL_MARK-%B%S%#%s%b}"
|
||||||
@ -3977,6 +3980,10 @@ function _p9k_clear_instant_prompt() {
|
|||||||
fi
|
fi
|
||||||
cat $__p9k_instant_prompt_output
|
cat $__p9k_instant_prompt_output
|
||||||
echo -nE - $sp
|
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
|
zf_rm -f -- $__p9k_instant_prompt_output
|
||||||
} 2>/dev/null
|
} 2>/dev/null
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user