58 lines
2.2 KiB
Bash
58 lines
2.2 KiB
Bash
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/:/opt/quarto/bin/:/home/$USER/Documents/course/tools/bin/"
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|
|
export TEXMFHOME=~/.texmf
|
|
|
|
# Change ls colors using vivid if installed
|
|
if type vivid >/dev/null; then
|
|
export LS_COLORS="$(vivid -m 8-bit generate one-dark)"
|
|
fi
|
|
|
|
if type thefuck > /dev/null; then
|
|
eval $(thefuck --alias)
|
|
fi
|
|
|
|
# >>> conda initialize >>>
|
|
# !! Contents within this block are managed by 'conda init' !!
|
|
__conda_setup="$('/home/sortion/.local/share/miniforge3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
|
|
if [ $? -eq 0 ]; then
|
|
eval "$__conda_setup"
|
|
else
|
|
if [ -f "/home/sortion/.local/share/miniforge3/etc/profile.d/conda.sh" ]; then
|
|
. "/home/sortion/.local/share/miniforge3/etc/profile.d/conda.sh"
|
|
else
|
|
export PATH="/home/sortion/.local/share/miniforge3/bin:$PATH"
|
|
fi
|
|
fi
|
|
unset __conda_setup
|
|
|
|
if [ -f "/home/sortion/.local/share/miniforge3/etc/profile.d/mamba.sh" ]; then
|
|
. "/home/sortion/.local/share/miniforge3/etc/profile.d/mamba.sh"
|
|
fi
|
|
# <<< conda initialize <<<
|
|
|
|
if type opam > /dev/null; then
|
|
eval $(opam env)
|
|
fi
|
|
|
|
PATH="/home/$USER/perl5/bin${PATH:+:${PATH}}"; export PATH;
|
|
PERL5LIB="/home/$USER/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
|
|
PERL_LOCAL_LIB_ROOT="/home/$USER/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
|
|
PERL_MB_OPT="--install_base \"/home/$USER/perl5\""; export PERL_MB_OPT;
|
|
PERL_MM_OPT="INSTALL_BASE=/home/$USER/perl5"; export PERL_MM_OPT;
|
|
|
|
# Init Guix
|
|
if command -v guix &> /dev/null
|
|
then
|
|
GUIX_PROFILE="$HOME/.config/guix/current"
|
|
. "$GUIX_PROFILE/etc/profile"
|
|
fi
|