2021-10-20 12:46:01 +00:00
|
|
|
# shellcheck shell=bash
|
2021-08-24 23:16:19 +00:00
|
|
|
# .bashrc
|
|
|
|
|
2021-10-20 12:46:01 +00:00
|
|
|
# shellcheck disable=1054,1073,1050,1072,1009
|
2021-10-12 21:17:03 +00:00
|
|
|
{{ if (eq .chezmoi.osRelease.id "centos") }}
|
|
|
|
{{ if (eq .chezmoi.osRelease.versionID "7") }}
|
|
|
|
# Switch to zsh if interactive, and we haven't been told not to
|
|
|
|
if [[ ($- == *i*) && ($SSH_TTY) && (-z $NO_ZSH) ]]; then
|
2021-10-20 12:56:22 +00:00
|
|
|
export SHELL=$(command -v zsh)
|
2021-10-12 21:17:03 +00:00
|
|
|
exec $SHELL -l
|
|
|
|
fi
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
2021-08-25 20:31:11 +00:00
|
|
|
if [ -f "$HOME/.modules" ]; then
|
|
|
|
source $HOME/.modules
|
|
|
|
fi
|
|
|
|
|
2021-08-25 01:00:29 +00:00
|
|
|
# Hook virtual environment modifers
|
|
|
|
source $HOME/.hooks
|
|
|
|
|
2021-08-24 23:16:19 +00:00
|
|
|
# User specific aliases and functions
|
2021-08-25 00:46:22 +00:00
|
|
|
source $HOME/.aliases
|
2021-08-24 23:16:19 +00:00
|
|
|
|
2021-08-25 01:25:16 +00:00
|
|
|
# >>> conda initialize >>>
|
|
|
|
# !! Contents within this block are managed by 'conda init' !!
|
|
|
|
__conda_setup="$('$HOME/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
eval "$__conda_setup"
|
|
|
|
else
|
|
|
|
if [ -f "$HOME/miniconda3/etc/profile.d/conda.sh" ]; then
|
|
|
|
. "$HOME/miniconda3/etc/profile.d/conda.sh"
|
|
|
|
else
|
|
|
|
export PATH="$HOME/miniconda3/bin:$PATH"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
unset __conda_setup
|
|
|
|
conda config --set changeps1 true
|
|
|
|
# <<< conda initialize <<<
|
|
|
|
|
|
|
|
# >>> direnv initalize >>>
|
2021-09-01 17:16:17 +00:00
|
|
|
if [ $(command -v direnv) ]; then
|
|
|
|
eval "$(direnv hook bash)"
|
|
|
|
fi
|
2021-08-25 01:25:16 +00:00
|
|
|
# <<< direnv initalize <<<
|
|
|
|
|
2021-08-25 01:36:50 +00:00
|
|
|
source $HOME/.envvar
|
|
|
|
|
2021-10-12 22:23:04 +00:00
|
|
|
if [ $(command -v env_parallel.bash) ]; then
|
|
|
|
source $(which env_parallel.bash)
|
|
|
|
fi
|
2021-10-11 14:47:50 +00:00
|
|
|
|
2021-08-24 23:16:19 +00:00
|
|
|
# Make the prompt pretty, just in case we're stuck in bash land
|
|
|
|
export PS1="[\[\e[32m\]\u\[\e[m\]@\[\e[33m\]\h\[\e[m\] \[\e[34m\]\W\[\e[m\]] \\$ "
|