mirror of
https://github.com/MillironX/dotfiles.git
synced 2024-11-22 05:29:54 +00:00
57 lines
1.4 KiB
Cheetah
57 lines
1.4 KiB
Cheetah
# .bashrc
|
|
|
|
# Source global definitions
|
|
if [ -f /etc/bashrc ]; then
|
|
. /etc/bashrc
|
|
fi
|
|
|
|
{{ 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
|
|
export SHELL=$(which zsh)
|
|
exec $SHELL -l
|
|
fi
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
if [ -f "$HOME/.modules" ]; then
|
|
source $HOME/.modules
|
|
fi
|
|
|
|
# Hook virtual environment modifers
|
|
source $HOME/.hooks
|
|
|
|
# User specific aliases and functions
|
|
source $HOME/.aliases
|
|
|
|
# >>> 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 >>>
|
|
if [ $(command -v direnv) ]; then
|
|
eval "$(direnv hook bash)"
|
|
fi
|
|
# <<< direnv initalize <<<
|
|
|
|
source $HOME/.envvar
|
|
|
|
if [ $(command -v env_parallel.bash) ]; then
|
|
source $(which env_parallel.bash)
|
|
fi
|
|
|
|
# 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\]] \\$ "
|