Tint the kitty tab background by target host so local vs remote (and which remote) is visible at a glance. - __kitty_host_color: explicit color table for known hosts (routers, resolvers, ryzen/mini, personal cloud, geo VPS) + stable hashed palette fallback; auto-picks readable fg by luminance - __kitty_ssh_host: parse target host from ssh/mosh-style argv - __kitty_tab_set/__kitty_tab_reset: active tab = full host-color bg, inactive tab = dark theme bg with host-color text; revert on exit - ssh wrapper + s (kitten ssh) and m (mosh) wired to tint/reset Also includes unrelated pending dotfile changes (GH MCP PAT from keychain in fish/zsh, kitty/wezterm font_size 15->14, kitty colorspace displayp3) committed together at user request. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
autoload -Uz compinit && compinit
|
|
|
|
# Ensure true color support for capable terminals
|
|
case "$TERM" in
|
|
xterm-ghostty|xterm-kitty|wezterm|*-direct)
|
|
export COLORTERM=truecolor
|
|
;;
|
|
esac
|
|
|
|
# Powerlevel10k instant prompt (must stay near top)
|
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
|
fi
|
|
|
|
export ZSH="$HOME/.oh-my-zsh"
|
|
ZSH_THEME=""
|
|
plugins=(git)
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
[[ -r /opt/homebrew/share/powerlevel10k/powerlevel10k.zsh-theme ]] && \
|
|
source /opt/homebrew/share/powerlevel10k/powerlevel10k.zsh-theme
|
|
|
|
if command -v brew >/dev/null 2>&1; then
|
|
HOMEBREW_PREFIX="$(brew --prefix)"
|
|
[[ -r "$HOMEBREW_PREFIX/share/zsh-autosuggestions/zsh-autosuggestions.zsh" ]] && \
|
|
source "$HOMEBREW_PREFIX/share/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
|
[[ -r "$HOMEBREW_PREFIX/opt/zsh-fast-syntax-highlighting/share/zsh-fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh" ]] && \
|
|
source "$HOMEBREW_PREFIX/opt/zsh-fast-syntax-highlighting/share/zsh-fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh"
|
|
fi
|
|
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
|
command -v atuin >/dev/null 2>&1 && eval "$(atuin init zsh --disable-up-arrow)"
|
|
|
|
# Added by LM Studio CLI (lms)
|
|
export PATH="$PATH:$HOME/.cache/lm-studio/bin"
|
|
|
|
[[ -r "$HOME/.codex/github-mcp-env.zsh" ]] && source "$HOME/.codex/github-mcp-env.zsh"
|