From 780040d017efadbe2ee8ec3d9302b6aa84a6ece5 Mon Sep 17 00:00:00 2001 From: reeink Date: Fri, 15 Mar 2024 14:49:24 +0800 Subject: [PATCH] add custom PATH and nix scripts --- dot_zshrc.tmpl | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index cb32dc4..dd7f64a 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -64,6 +64,13 @@ key[Control-Right]="${terminfo[kRIT5]}" [[ -n "${key[Control-Right]}" ]] && bindkey -- "${key[Control-Right]}" forward-word +# custom PATH +path+=("$HOME"'/.local/bin') +path+=("$HOME"'/.cargo/bin') +# export to sub-processes (make it inherited by child processes) +export PATH + + # homebrew config eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" @@ -113,6 +120,9 @@ eval "$(atuin init zsh)" # zoxide config eval "$(zoxide init zsh)" +# nix config +if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then . $HOME/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer + # editors export EDITOR="nano" export VISUAL="code" @@ -154,9 +164,6 @@ alias box='distrobox' alias i='cd ~/i' -# Created by `pipx` on 2024-02-17 11:33:21 -export PATH="$PATH:/home/ree/.local/bin" - {{if eq .chezmoi.os "windows" -}} # windows spec config {{- else if eq .chezmoi.os "linux" -}}