.dotfiles/.loadenv.sh

39 lines
1.5 KiB
Bash
Raw Normal View History

2023-08-19 07:20:51 +02:00
export PATH="/home/$USER/.luarocks/bin:/home/$USER/.julia/bin:/home/$USER/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/$USER/.local/bin:/home/$USER/bin:/home/$USER/Documents/cours/tools/bin/:/usr/games/:/home/$USER/.config/emacs/bin/:/usr/local/cuda/bin/:/home/$USER/.local/share/coursier/bin/"
2022-12-13 06:33:15 +01:00
2023-08-10 19:45:10 +02:00
# export EDITOR=vim
export ALTERNATE_EDITOR=""
export EDITOR="emacsclient -t" # $EDITOR opens in terminal
export VISUAL="emacsclient -fs -c -a emacs" # $VISUAL opens in GUI mode
2023-07-24 09:58:16 +02:00
2023-07-29 14:49:27 +02:00
# nvm
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
2023-07-06 15:21:23 +02:00
export TEXMFHOME=~/.texmf
2023-07-24 09:58:16 +02:00
# Change ls colors using vivid if installed
if type vivid >/dev/null; then
export LS_COLORS="$(vivid -m 8-bit generate one-dark)"
fi
eval $(thefuck --alias)
2023-07-06 15:21:23 +02:00
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
2023-08-10 19:45:10 +02:00
__conda_setup="$('/home/$USER/.local/share/mambaforge/bin/conda' 'shell.zsh' 'hook' 2>/dev/null)"
2023-07-06 15:21:23 +02:00
if [ $? -eq 0 ]; then
2023-07-16 15:27:19 +02:00
eval "$__conda_setup"
2023-07-06 15:21:23 +02:00
else
2023-08-10 19:45:10 +02:00
if [ -f "/home/$USER/.local/share/mambaforge/etc/profile.d/conda.sh" ]; then
. "/home/$USER/.local/share/mambaforge/etc/profile.d/conda.sh"
2023-07-16 15:27:19 +02:00
else
2023-08-10 19:45:10 +02:00
export PATH="/home/$USER/.local/share/mambaforge/bin:$PATH"
2023-07-16 15:27:19 +02:00
fi
2023-07-06 15:21:23 +02:00
fi
unset __conda_setup
2023-08-10 19:45:10 +02:00
if [ -f "/home/$USER/.local/share/mambaforge/etc/profile.d/mamba.sh" ]; then
. "/home/$USER/.local/share/mambaforge/etc/profile.d/mamba.sh"
2023-05-27 21:49:19 +02:00
fi
2023-07-06 15:21:23 +02:00
# <<< conda initialize <<<