You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using pure w/ iterm2, the iterm2 zsh plugin, and the plugins ability to enable the iterm2 shell integration, the shortcut for clearing the terminal (Cmd-K) is broken, and instead exhibits inconsistent but broken behavior. Sometimes it fixes the cursor to the bottom of the terminal. Sometimes it simply does nothing. Sometimes it will correctly clear the screen. Pressing Ctrl-L restores it to the top of the terminal.
System report (output of prompt_pure_system_report):
I've duplicated this across two separate machines.
Cmd-K does work correctly in the macOS default Terminal app.
Tried multiple other themes and was unable to reproduce this issue with others.
I have:
Tested with another terminal program and can reproduce the issue
Am unable to reproduce this in macOS Terminal app
Tested the same combination above but with multiple other themes and am unable to reproduce the issue
Followed the integration instructions for my framework
Problem description
iTerm2 native shortcut to clear the terminal buffer is broken by combination of pure theme, iterm2 zsh plugin, and enabling shell integration via said plugin.
Reproduction steps
Add iTerm2 plugin, e.g. plugins=(iterm2...)
Enable iTerm2 shell integration via plugin, e.g. zstyle :omz:plugins:iterm2 shell-integration yes
Open iTerm2
Perform any generic command to generate output
Press Cmd-K
Potentially repeat once or twice and you should see the unexpected behavior.
General information
When using pure w/ iterm2, the iterm2 zsh plugin, and the plugins ability to enable the iterm2 shell integration, the shortcut for clearing the terminal (Cmd-K) is broken, and instead exhibits inconsistent but broken behavior. Sometimes it fixes the cursor to the bottom of the terminal. Sometimes it simply does nothing. Sometimes it will correctly clear the screen. Pressing Ctrl-L restores it to the top of the terminal.
System report (output of
prompt_pure_system_report
):''
❯
1.23.0
1.8.6
typeset -g PROMPT=$'%F{${prompt_pure_colors[path]}}%~%f %{ %}%(12V.%F{$prompt_pure_colors[virtualenv]}%12v%f .)%(?.%F{$prompt_pure_colors[prompt:success]}.%F{$prompt_pure_colors[prompt:error]})${prompt_pure_state[prompt]}%f %{�]133;B�%}'
typeset -g -A prompt_pure_colors=( [execution_time]=yellow [git:action]=yellow [git:arrow]=cyan [git:branch]=242 [git:branch:cached]=red [git:dirty]=218 [git:stash]=cyan [host]=242 [path]=blue [prompt:continuation]=242 [prompt:error]=red [prompt:success]=magenta [suspended_jobs]=red [user]=242 [user:root]=default [virtualenv]=242 )
export TERM=xterm-256color
export VIRTUAL_ENV_DISABLE_PROMPT=12
export CONDA_CHANGEPS1=no
Other information
I have:
can reproduce the issueProblem description
iTerm2 native shortcut to clear the terminal buffer is broken by combination of pure theme, iterm2 zsh plugin, and enabling shell integration via said plugin.
Reproduction steps
plugins=(iterm2...)
zstyle :omz:plugins:iterm2 shell-integration yes
My
.zshrc
:The text was updated successfully, but these errors were encountered: