Kali-style shell on top of omz; p10k fallback via KALI_PROMPT (#612)

Port of Kali's stock kali-zsh-config as ~/.config/zsh/kali-comforts.sh:
twoline prompt, menu-select + case-insensitive completion, keybindings,
color aliases, syntax-highlight palette. Loaded last; omz untouched.

Details + UAT: https://projects.knownelement.com/issues/612#note-3343
This commit is contained in:
2026-09-01 12:38:00 -05:00
parent b28f38d4c0
commit 1b386f1b40
3 changed files with 213 additions and 10 deletions
+20 -5
View File
@@ -2,19 +2,29 @@
# Home base: ultix-streaming (VM 5111). Minimal interactive footprint
# anywhere else; heavy lifting happens in containers.
#
# Layers: oh-my-zsh + powerlevel10k, fzf, vi mode, ~/.config/zsh/* snippets.
# Layers: oh-my-zsh + Kali-style prompt/completions (kali-comforts.sh),
# fzf, vi mode, ~/.config/zsh/* snippets. powerlevel10k stays installed
# as the fallback prompt (KALI_PROMPT=0).
#####################################################################
# oh-my-zsh
#####################################################################
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
# Prompt: Kali twoline by default (kali-comforts.sh applies it last).
# KALI_PROMPT=0 flips back to powerlevel10k.
KALI_PROMPT=${KALI_PROMPT:-1}
if [[ "$KALI_PROMPT" == 1 ]]; then
ZSH_THEME=""
else
ZSH_THEME="powerlevel10k/powerlevel10k"
fi
# externals in .chezmoiexternal.toml own updates
zstyle ':omz:update' mode disabled
ENABLE_CORRECTION="true"
# Kali ships command correction OFF — the nagging outweighs the saves
DISABLE_UNTRACKED_FILES_DIRTY="true"
HIST_STAMPS="yyyy-mm-dd"
@@ -33,8 +43,10 @@ plugins=(
source $ZSH/oh-my-zsh.sh
# powerlevel10k (run `p10k configure` any time for the fancy wizard)
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# powerlevel10k loads only when it's the active prompt
if [[ "$KALI_PROMPT" != 1 ]]; then
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
fi
#####################################################################
# Creature comforts
@@ -113,3 +125,6 @@ fi
[[ -r "$HOME/.config/zsh/variables.sh" ]] && source "$HOME/.config/zsh/variables.sh"
[[ -r "$HOME/.config/zsh/aliases.sh" ]] && source "$HOME/.config/zsh/aliases.sh"
# Kali-style prompt + completions (loaded last so its settings win)
[[ -r "$HOME/.config/zsh/kali-comforts.sh" ]] && source "$HOME/.config/zsh/kali-comforts.sh"