ZSH-Config/.zshenv

53 lines
828 B
Plaintext
Raw Normal View History

2024-04-24 04:20:33 +00:00
#
# $ZDOTDIR/.zshenv
#
if [ -d /opt/devkitpro ]; then
export DEVKITPRO=/opt/devkitpro
export DEVKITARM=$DEVKITPRO/devkitARM
export DEVKITPPC=$DEVKITPRO/devkitPPC
fi
2024-08-06 14:13:18 +00:00
if [ -d $HOME/.local/share/esp ]; then
export IDF_TOOLS_PATH=$HOME/.local/share/esp/idf
fi
2024-04-24 04:20:33 +00:00
# Copied from arch linux's default /etc/profile
function append_path() {
[ ! -d "$1" ] && return
case ":$PATH:" in
*:"$1":*)
;;
*)
PATH="${PATH:+$PATH:}$1"
esac
}
append_path "/home/cameron/.local/share/JetBrains/Toolbox/scripts"
2024-08-06 14:13:18 +00:00
if [ -d "$HOME/.local/bin" ]; then
append_path "$HOME/.local/bin"
fi
if [ -d "$HOME/go/bin" ]; then
append_path "$HOME/go/bin"
fi
2024-04-24 04:20:33 +00:00
export PATH
unset -f append_path
EDITOR="vim"
if command -v nvim &> /dev/null; then
EDITOR="nvim"
fi
export EDITOR