30 lines
645 B
Bash
30 lines
645 B
Bash
# 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_tail '/envs/bin'
|
|
pathadd_head "$HOME/.local/bin"
|
|
pathadd_head '/tmp/bin'
|
|
pathadd_head "$HOME/.config/emacs/bin"
|
|
|
|
# Preferences
|
|
export CALIBRE_USE_SYSTEM_THEME=0
|
|
export CALIBRE_USE_DARK_PALETTE=1
|
|
|
|
export PATH
|