Skip to content

Commit 9bc7ecb

Browse files
Merge feat/npm-user-prefix: make npm prefix user-local
2 parents cd43c41 + 9ab3375 commit 9bc7ecb

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

home-manager/default.nix

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,32 @@
124124
eval "$(pyenv init -)"
125125
fi
126126
127+
# --- migrated from /etc/zshrc.local ---
128+
# Enable UTF-8 combining characters support when appropriate
129+
if [[ ! -x /usr/bin/locale ]] || [[ "$(locale LC_CTYPE)" == "UTF-8" ]]; then
130+
setopt COMBINING_CHARS
131+
fi
132+
133+
# Disable the log builtin to avoid conflict with /usr/bin/log
134+
disable log || true
135+
136+
# History behaviour
137+
export HISTFILE="${config.home.homeDirectory}/.zsh_history"
138+
SAVEHIST=1000
139+
HISTSIZE=2000
140+
setopt HIST_IGNORE_DUPS SHARE_HISTORY HIST_FCNTL_LOCK
141+
142+
# Beep on error
143+
setopt BEEP || true
144+
145+
# Default key bindings and prompt
146+
bindkey -e || true
147+
PS1="%n@%m %1~ %# "
148+
149+
# Terminal-specific system support (if present)
150+
[ -r "/etc/zshrc_$TERM_PROGRAM" ] && . "/etc/zshrc_$TERM_PROGRAM"
151+
# --- end migration ---
152+
127153
# Ensure pipx is available and use it to install `uv` (astral-sh/uv).
128154
# This keeps the uv CLI isolated from global pip and makes it available
129155
# for the active Python (pyenv shims / Homebrew python).

0 commit comments

Comments
 (0)