Use $HOME instead of hardcoded username/tilde

This commit is contained in:
2024-01-13 14:35:39 -06:00
parent 5ba7050e86
commit 75205bde66

View File

@@ -96,8 +96,8 @@ fi
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
if [ -f $HOME/.bash_aliases ]; then
. $HOME/.bash_aliases
fi
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
@@ -111,7 +111,10 @@ export GPG_TTY=$(tty)
export MICRO_TRUECOLOR=1
# rbenv (ruby)
eval "$(rbenv init -)"
if command -v rbenv &> /dev/null
then
eval "$(rbenv init -)"
fi
# brew (obsolete by brew plugin)
# eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
@@ -121,7 +124,7 @@ export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# bun completions
[ -s "/home/xevion/.bun/_bun" ] && source "/home/xevion/.bun/_bun"
[ -s "$HOME/.bun/_bun" ] && source "$HOME/.bun/_bun"
export PATH=$PATH:/usr/local/go/bin
export TERM=xterm-256color # fixes terminal colors when ssh'ing into laptop
@@ -130,5 +133,10 @@ export TERM=xterm-256color # fixes terminal colors when ssh'ing into laptop
export PATH="$HOME/.local/share/bob/nvim-bin:$PATH"
# java version manager
export PATH="$HOME/.jenv/bin:$PATH"
eval "$(jenv init -)"
if [ -d $HOME/.jenv/bin ]; then
export PATH="$HOME/.jenv/bin:$PATH"
if command -v jenv &> /dev/null
then
eval "$(jenv init -)"
fi
fi