dotfiles/zsh/.zprofile

39 lines
828 B
Plaintext
Raw Normal View History

2021-11-04 23:18:36 -04:00
# If you make changes to this, it's probably a good idea to log out.
[ -f $HOME/.nix-profile/etc/profile.d/nix.sh ] && source \
$HOME/.nix-profile/etc/profile.d/nix.sh
pathadd_head() {
if [ -d "$1" ] && ! echo "$PATH" | grep -q "$1" >/dev/null; then
PATH="$1${PATH:+":$PATH"}"
fi
}
pathadd_tail() {
if [ -d "$1" ] && ! echo "$PATH" | grep -q "$1" >/dev/null; then
PATH="${PATH:+"$PATH:"}$1"
fi
}
export EDITOR=nvim
2022-04-13 12:14:53 -04:00
source "$HOME/.cargo/env"
2021-11-04 23:18:36 -04:00
pathadd_head "$HOME/.local/bin"
pathadd_head '/tmp/bin'
2021-12-08 14:55:55 -05:00
pathadd_head "$HOME/.config/emacs/bin"
2021-11-04 23:18:36 -04:00
2022-01-09 12:40:44 -05:00
if [[ $HOST == "core.envs.net" ]]; then
pathadd_tail '/envs/bin'
pathadd_head "$HOME/public_html/files/bin"
fi
2021-11-04 23:18:36 -04:00
# Preferences
export CALIBRE_USE_SYSTEM_THEME=0
2021-12-22 13:38:53 -05:00
export CALIBRE_USE_DARK_PALETTE=1
2021-11-04 23:18:36 -04:00
2022-03-30 22:49:49 -04:00
# macOS: homebrew
eval "$(/opt/homebrew/bin/brew shellenv)"
2021-11-04 23:18:36 -04:00
export PATH