Last active
December 26, 2021 17:46
-
-
Save RafikFarhad/1fba93656a798a00dcfda4b2586d9dcd to your computer and use it in GitHub Desktop.
I'm used to tmux but my work environment needs x86 most of the time. So I have to use brew of my x86_64 terminal (Rosetta terminal). But when I do other experimental tasks in my native arm64 terminal, when using tmux I got x86_64 terminal inside tmux pane/window because I installed tmux using x86_64 brew. So I planned to use both flavour of brew…
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
source /Users/farhad/.my-dot-files/zshrc.conf | |
source /Users/farhad/.my-dot-files/legacy/.aliases | |
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 | |
# php | |
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 | |
[ -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 | |
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
export PATH="$PATH:$HOME/.rvm/bin" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment