Personal dotfiles.
git clone git://
Log | Files | Refs | Submodules

commit 648aa269495807fe59f4900199d67ce33841ef0b
parent 1b0fe02eb0453776cedb9888d0a74d139c11bbdf
Author: MichaƂ M. Sapka <>
Date:   Wed,  7 Dec 2022 12:09:29 +0100

fix(zsh): tab no longer breaks prompt

Mzsh/.zshrc | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/zsh/.zshrc b/zsh/.zshrc @@ -6,10 +6,14 @@ autoload -Uz vcs_info precmd() { vcs_info } # Format the vcs_info_msg_0_ variable -zstyle ':vcs_info:git:*' formats '[%b]' setopt PROMPT_SUBST -PROMPT='[$fg[red]% %n@%m %3~%{$reset_color%}]${vcs_info_msg_0_} %{$reset_color%}$%b ' +UNAME_PROMPT=%{$fg[red]%} +HOST_PROMPT=%{$fg[yellow]%} +PATH_PROMPT=%{$fg[magenta]%} +RESET_PROMPT_COLOR=%{$reset_color%} +zstyle ':vcs_info:git:*' formats '[%b]' +PROMPT='[${UNAME_PROMPT}%n${RESET_PROMPT_COLOR}@${HOST_PROMPT}%m${PATH_PROMPT} %3~%{$RESET_PROMPT_COLOR%}]${vcs_info_msg_0_} %{$reset_color%}$%b ' echo "My terminal. I like to keep it close to where my heart used to be" @@ -35,6 +39,7 @@ alias lla="ll -a" # Zendesk stuff alias grid="docker run -it --rm -v ~/.grid.yml:/root/.grid.yml -v /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock -e SSH_AUTH_SOCK="/run/host-services/ssh-auth.sock" -v ~/.ssh:/root/.ssh -v ~/.aws/credentials:/root/.aws/credentials -v ~/.goship.yaml:/root/.goship.yaml -v ~/.saml2aws:/root/.saml2aws -e TIMEZONE=Europe/Warsaw grid \"\$@\"" source ~/ghq/ +alias zcc="cd ~/ghq/" alias zc="cd ~/ghq/" export PATH=$PATH:~/.local/bin