fix: env loader
This commit is contained in:
parent
1202c0fc93
commit
1b4da5d184
3 changed files with 19 additions and 11 deletions
0
configs/shell/.zsh/functions/utils.zsh
Normal file
0
configs/shell/.zsh/functions/utils.zsh
Normal file
|
@ -10,19 +10,27 @@ export VOID_PACKAGES_PATH=$HOME/.local/pkgs/void-packages
|
|||
export DNS_CHANGER=$HOME/.shell/dns-changer.sh
|
||||
export STEAM_OS=$HOME/.steam-os/main.sh
|
||||
|
||||
if [ -d "$HOME/platform-tools" ]; then
|
||||
if [ -d "/home/$USER/platform-tools" ]; then
|
||||
export PATH="$HOME/platform-tools:$PATH"
|
||||
fi
|
||||
|
||||
if [ -d "/home/$USER/.deno" ]; then
|
||||
export DENO_INSTALL="/home/$USER/.deno"
|
||||
export PATH="$HOME/.local/share/bob/nvim-bin:$PATH"
|
||||
export PATH="$DENO_INSTALL/bin:$PATH"
|
||||
fi
|
||||
|
||||
. "$HOME/.cargo/env"
|
||||
|
||||
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
if [ -d "/home/$USER/.cargo" ]; then
|
||||
. "/home/$USER/.cargo/env"
|
||||
fi
|
||||
|
||||
if [ -d "/home/$USER/.bun" ]; then
|
||||
[ -s "/home/$USER/.bun/_bun" ] && source "/home/$USER/.bun/_bun"
|
||||
export BUN_INSTALL="$HOME/.bun"
|
||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||
fi
|
||||
|
||||
if [ -d "/home/$USER/.nvm" ]; then
|
||||
export PATH="$HOME/.local/share/bob/nvim-bin:$PATH"
|
||||
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
fi
|
||||
|
|
|
@ -17,7 +17,7 @@ else
|
|||
fi
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
source ~/.zsh/aliases/main.zsh
|
||||
source ~/.zsh/functions/main.zsh
|
||||
source ~/.zsh/aliases/main.zsh
|
||||
|
||||
eval "$(atuin init zsh)"
|
||||
|
|
Loading…
Add table
Reference in a new issue