Created
November 19, 2023 17:43
-
-
Save sebastian-palma/d4fd7b0329c78829fae157b7b49455cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROMPT="%(?:%{$fg_bold[green]%}➜ ($WEZTERM_PANE):%{$fg_bold[red]%}➜ ) %{$fg[cyan]%}%c%{$reset_color%}" | |
PROMPT+=' $(git_prompt_info)' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$WEZTERM_PANE
is used to send commands withwezterm cli send-text --pane-id <pane number> --no-paste
Although executing
$WEZTERM_PANE
always returns the number of the given pane, the above mentioned is easier.You can send commands from (n)vim as
silent !echo 'python ' %:S | wezterm cli send-text --pane-id <pane number> --no-paste
.