Created
August 30, 2024 18:48
-
-
Save wanikhawar/22cd0b96200e73b656e5c4a21829e66d to your computer and use it in GitHub Desktop.
bash_profile file. Works with power_line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# >>> 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