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.

Revisions

  1. wanikhawar created this gist Aug 30, 2024.
    39 changes: 39 additions & 0 deletions bash_profile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@
    # >>> 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)"