dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 5759b42ed42c79b6e65262908dce604aa85b32da
parent f31bc534ff4bf23ac052f668da985261a4f39273
Author: Chris Bracken <chris@bracken.jp>
Date:   Sun,  7 Jun 2026 08:05:50 +0900

zsh: skip loading module 'colors'

Turns out it's the second slowest thing in my zshrc, and we only use
this for prompt colours. We can get the same effect without it.

Diffstat:
M.config/zsh/.zshrc | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc @@ -57,8 +57,7 @@ vcs_branch() { # Prompt. setopt prompt_subst -autoload -Uz colors && colors -PROMPT='%{$fg[yellow]%}%T %{$fg[green]%}%n@%m%{$reset_color%}:%{$fg_bold[blue]%}%c%{$fg[yellow]%}$(vcs_branch)%{$reset_color%}%# ' +PROMPT='%F{yellow}%T %F{green}%n@%m%f:%B%F{blue}%c%b%F{yellow}$(vcs_branch)%f%# ' # Set TERM for known terminals, and as a fallback when specified term is # unavailable.