aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/zsh
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-06-18 12:06:20 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-06-18 12:06:20 +0100
commit511793cba498f52b0f92904965ea5c9afa8b6ea4 (patch)
treea9dd9af537e4a0cf94c4da14987968b640f3ceb6 /dot_config/zsh
parentf521c2568533e38fb78956de63403917f1fad504 (diff)
downloaddotfiles-511793cba498f52b0f92904965ea5c9afa8b6ea4.tar.gz
dotfiles-511793cba498f52b0f92904965ea5c9afa8b6ea4.tar.bz2
dotfiles-511793cba498f52b0f92904965ea5c9afa8b6ea4.zip
Reduce Arch package surface
Diffstat (limited to 'dot_config/zsh')
-rw-r--r--dot_config/zsh/dot_zprofile6
-rw-r--r--dot_config/zsh/dot_zshrc4
2 files changed, 8 insertions, 2 deletions
diff --git a/dot_config/zsh/dot_zprofile b/dot_config/zsh/dot_zprofile
index b95079b..20852db 100644
--- a/dot_config/zsh/dot_zprofile
+++ b/dot_config/zsh/dot_zprofile
@@ -29,6 +29,12 @@ export XDG_CACHE_HOME="$HOME/.cache"
# even if /etc/profile.d snippets try to prepend duplicates.
[[ -r /etc/profile ]] && emulate sh -c 'source /etc/profile'
+# Home Manager writes host-specific session variables here. Keep this after
+# /etc/profile so Nix/HM values can provide user-level tool wiring without
+# being clobbered by distro profile snippets.
+[[ -r "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" ]] &&
+ emulate sh -c ". \"$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh\""
+
# ── Locale ────────────────────────────────────────────────────────────────────
export LANG=en_US.UTF-8
diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc
index c697594..d78c9e5 100644
--- a/dot_config/zsh/dot_zshrc
+++ b/dot_config/zsh/dot_zshrc
@@ -46,7 +46,7 @@ fpath=($XDG_DATA_HOME/zsh/completion $fpath)
# Pull in completions from both nix-installed packages AND the system
# package manager (pacman on Arch host, apt on Ubuntu VM). nix zsh's
# default fpath only includes its own nix-store dirs, so without these
-# entries we miss completions for pacman, paru, systemctl, flatpak,
+# entries we miss completions for pacman, systemctl, flatpak,
# docker, kubectl, etc. on the host, and apt/snap on the VM.
for _d in "$HOME/.nix-profile/share/zsh/site-functions" \
"$HOME/.nix-profile/share/zsh/vendor-completions" \
@@ -77,7 +77,7 @@ zstyle ':completion:*' completer _expand_alias _complete _ignored _match _approx
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} # colorize file completions like ls
zstyle ':completion:*' use-cache on # cache completions (speeds up pip, dpkg, etc.)
zstyle ':completion:*' cache-path "$XDG_CACHE_HOME/zsh"
-zstyle ':completion:*' rehash true # rebuild PATH hash on every completion (catches paru, cargo, pip, manual installs)
+zstyle ':completion:*' rehash true # rebuild PATH hash on every completion (catches cargo, pip, manual installs)
zstyle ':completion:*:match:*' original only # only show original when pattern-matching
zstyle ':completion:*:functions' ignored-patterns '_*' # hide internal completion functions
zstyle ':completion:*:*:kill:*' menu yes select # interactive menu for kill completion