Skip to content

Instantly share code, notes, and snippets.

@wanikhawar
Created August 30, 2024 18:48
Show Gist options
  • Save wanikhawar/22cd0b96200e73b656e5c4a21829e66d to your computer and use it in GitHub Desktop.
Save wanikhawar/22cd0b96200e73b656e5c4a21829e66d to your computer and use it in GitHub Desktop.
bash_profile file. Works with power_line
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/khawar/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/khawar/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/khawar/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/khawar/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
##
function _update_ps1() {
PS1=$(powerline-shell $?)
}
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
# >>> juliaup initialize >>>
# !! Contents within this block are managed by juliaup !!
case ":$PATH:" in
*:/Users/khawar/.juliaup/bin:*)
;;
*)
export PATH=/Users/khawar/.juliaup/bin${PATH:+:${PATH}}
;;
esac
# <<< juliaup initialize <<<
eval "$(/opt/homebrew/bin/brew shellenv)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment