dotfiles/zsh/.zprofile

49 lines
1.0 KiB
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
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
2022-06-22 18:08:34 -04:00
pathadd_tail '/envs/bin'
pathadd_head "$HOME/public_html/files/bin"
2022-01-09 12:40:44 -05:00
fi
if [[ $HOST == "tycho" ]]; then
pathadd_tail "$HOME/.wakatime"
fi
2022-04-28 10:29:21 -04:00
# rust
[ -f $HOME/.cargo/env ] && source $HOME/.cargo/env
2023-01-02 10:58:25 -05:00
# nim
export PATH=$HOME/.nimble/bin:$PATH
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-09-28 19:43:04 -04:00
# macOS
2022-06-22 20:02:42 -04:00
[ -f /opt/homebrew/bin/brew ] && eval "$(/opt/homebrew/bin/brew shellenv)"
2022-09-28 19:43:04 -04:00
eval "$(rbenv init - zsh)"
export LOLCOMMITS_DELAY=2
2022-03-30 22:49:49 -04:00
2021-11-04 23:18:36 -04:00
export PATH