chore(shell): powerlevel10k prompt, host-aware bootstrap, drop thefuck

- zsh prompt: replace oh-my-posh with powerlevel10k via zinit, with the
  instant-prompt preamble near the top of .zshrc for fast startup
- remove thefuck/thefk entirely: .zshrc aliases, install-thefk,
  home_config/thefuck, and its .stow-global-ignore entry
- link-dotfiles: one-shot host-aware bootstrap — detect macOS vs Linux,
  install GNU stow if missing (brew / apt/dnf/pacman), then stow both trees
- retire oh-my-posh: delete the bash + pwsh installers and
  home_config/ohmyposh (starship covers PowerShell separately)
- README: document the new bootstrap and prompt setup
This commit is contained in:
lkrav
2026-06-26 07:33:57 -07:00
parent 9883a7c11d
commit 7076d40191
13 changed files with 79 additions and 397 deletions
+11 -7
View File
@@ -3,9 +3,12 @@ path=(~/bin $path)
path=(~/.local/bin $path)
path=(~/.cache/lk-tools/fzf/bin $path)
# Init OhMyPosh
eval "$(oh-my-posh init zsh --config https://333e8677ac54a1845fe68813017ab7e807c87ab2@gitea.phasefinal.com/vh/dotfiles/raw/branch/master/home_config/ohmyposh/lkraven.toml)"
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
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
# Set ZINIT Home
ZINIT_HOME="${HOME}/.config/zinit/zinit.git"
@@ -20,6 +23,10 @@ fi
source "${ZINIT_HOME}/zinit.zsh"
# add zinit
# Powerlevel10k prompt theme (replaces oh-my-posh; instant prompt = fast startup)
zinit ice depth=1
zinit light romkatv/powerlevel10k
zinit light zsh-users/zsh-syntax-highlighting
zinit light zsh-users/zsh-completions
zinit light zsh-users/zsh-autosuggestions
@@ -67,7 +74,7 @@ alias cat='bat'
alias tree='eza --tree'
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
# [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND="fd --hidden --strip-cwd-prefix --exclude .git"
@@ -99,9 +106,6 @@ export BAT_THEME=Nord
eval "$(zoxide init zsh)"
alias cd='z'
eval $(thefuck --alias)
eval $(thefuck --alias fk)
zinit light Aloxaf/fzf-tab