1
0
Fork 0
mirror of https://github.com/MillironX/dotfiles.git synced 2024-11-15 03:13:10 +00:00

Add shell-specific hooks to bash

This commit is contained in:
Thomas A. Christensen II 2021-08-24 20:25:16 -05:00
parent 07b403882c
commit 87cf0d8e81

View file

@ -11,5 +11,25 @@ source $HOME/.hooks
# User specific aliases and functions # User specific aliases and functions
source $HOME/.aliases 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 >>>
eval "$(direnv hook bash)"
# <<< direnv initalize <<<
# Make the prompt pretty, just in case we're stuck in bash land # 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\]] \\$ " export PS1="[\[\e[32m\]\u\[\e[m\]@\[\e[33m\]\h\[\e[m\] \[\e[34m\]\W\[\e[m\]] \\$ "