Skip to content

Instantly share code, notes, and snippets.

@RafikFarhad
Last active December 26, 2021 17:46
Show Gist options
  • Select an option

  • Save RafikFarhad/1fba93656a798a00dcfda4b2586d9dcd to your computer and use it in GitHub Desktop.

Select an option

Save RafikFarhad/1fba93656a798a00dcfda4b2586d9dcd to your computer and use it in GitHub Desktop.

Revisions

  1. RafikFarhad revised this gist Dec 26, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -11,8 +11,8 @@ else
    fi

    # php
    export PATH="$PATH:$/usr/local/opt/[email protected]/bin:$PATH"
    export PATH="$PATH:/usr/local/opt/[email protected]/sbin:$PATH"
    export PATH=$PATH:$/usr/local/opt/[email protected]/bin
    export PATH=$PATH:/usr/local/opt/[email protected]/sbin

    # nvm
    [ -s "/usr/local/opt/nvm/nvm.sh" ] && \. "/usr/local/opt/nvm/nvm.sh" # This loads nvm
  2. RafikFarhad revised this gist Dec 26, 2021. 1 changed file with 7 additions and 6 deletions.
    13 changes: 7 additions & 6 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,6 @@
    source /Users/farhad/.my-dot-files/zshrc.conf
    source /Users/farhad/.my-dot-files/legacy/.aliases

    # exports
    if [[ $(uname -m) == "x86_64" ]]; then
    echo "x86_64 detected"
    export PATH=/usr/local/Homebrew/bin:$PATH
    @@ -11,10 +10,9 @@ else
    export PATH=/opt/homebrew/bin:$PATH
    fi

    # Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
    export PATH="$PATH:$HOME/.rvm/bin"
    echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
    echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc
    # php
    export PATH="$PATH:$/usr/local/opt/[email protected]/bin:$PATH"
    export PATH="$PATH:/usr/local/opt/[email protected]/sbin:$PATH"

    # nvm
    [ -s "/usr/local/opt/nvm/nvm.sh" ] && \. "/usr/local/opt/nvm/nvm.sh" # This loads nvm
    @@ -26,4 +24,7 @@ export NVM_DIR=~/.nvm
    # The next line updates PATH for the Google Cloud SDK.
    if [ -f '/usr/local/google/google-cloud-sdk/path.zsh.inc' ]; then . '/usr/local/google/google-cloud-sdk/path.zsh.inc'; fi
    # The next line enables shell command completion for gcloud.
    if [ -f '/usr/local/google/google-cloud-sdk/completion.zsh.inc' ]; then . '/usr/local/google/google-cloud-sdk/completion.zsh.inc'; fi
    if [ -f '/usr/local/google/google-cloud-sdk/completion.zsh.inc' ]; then . '/usr/local/google/google-cloud-sdk/completion.zsh.inc'; fi

    # Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
    export PATH="$PATH:$HOME/.rvm/bin"
  3. RafikFarhad created this gist Dec 26, 2021.
    29 changes: 29 additions & 0 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    source /Users/farhad/.my-dot-files/zshrc.conf
    source /Users/farhad/.my-dot-files/legacy/.aliases

    # exports
    if [[ $(uname -m) == "x86_64" ]]; then
    echo "x86_64 detected"
    export PATH=/usr/local/Homebrew/bin:$PATH
    else
    echo "arm64 detected"
    # the following line prioritize the arm brew's installation
    export PATH=/opt/homebrew/bin:$PATH
    fi

    # Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
    export PATH="$PATH:$HOME/.rvm/bin"
    echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
    echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc

    # nvm
    [ -s "/usr/local/opt/nvm/nvm.sh" ] && \. "/usr/local/opt/nvm/nvm.sh" # This loads nvm
    [ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
    export NVM_DIR=~/.nvm


    # gcloud
    # The next line updates PATH for the Google Cloud SDK.
    if [ -f '/usr/local/google/google-cloud-sdk/path.zsh.inc' ]; then . '/usr/local/google/google-cloud-sdk/path.zsh.inc'; fi
    # The next line enables shell command completion for gcloud.
    if [ -f '/usr/local/google/google-cloud-sdk/completion.zsh.inc' ]; then . '/usr/local/google/google-cloud-sdk/completion.zsh.inc'; fi