add custom PATH and nix scripts

This commit is contained in:
reeink 2024-03-15 14:49:24 +08:00
parent c7f6768348
commit 780040d017
No known key found for this signature in database

View file

@ -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" -}}