I have my .zshrc file stored on a cloud service and have symbolic links that reference it on both of my Macs. One is M1 based on the other Intel. I need a setting that is slightly different on each machine because of the different CPU types. How can I set these settings only if the CPU is correct?
How can I load zsh settings conditionally based on CPU?
156 Views Asked by Jacob Miller At
1
There are 1 best solutions below
Related Questions in MACOS
- How do I customize NSOutlineView to have border color?
- Force sublime text to use PATH from the shell value
- Do executable files always open a terminal window on MacOS?
- setting OpenGL version in objective-C
- C std library don't appear to be linked in object file
- Cross compile simple standard C program on Linux for Mac
- How to generate request format for WCF web service method for Mac and iPhone
- Bundle Multiple Xamarin apps in one pkg installer
- How to Handle Command Line Prompt from a Cocoa App
- AVFoundation - Process each image separately
- CMYK NSImage get pixel data
- how i get the mac of ibeacon or BLE
- Set JAVA_HOME on Mac
- Finding active IPv6 interfaces under Mac OS (using Python)
- OSX: Why is my launchd agent running my script twice?
Related Questions in ZSH
- How to merge two arrays in a zipper like fashion in Bash?
- zsh prompt wrapping to a newline after adding buildstatus
- Provide description for zsh completion option?
- how to filter a phrase (ends in newline) from terminal output
- Make vim follow symlinks when opening files from command line
- PATH not working on Mac OS X 10.10.3
- What does autoload do in zsh?
- oh-my-zsh error after upgrade: ~/.oh-my-zsh/lib/misc.zsh:3: parse error near `then'
- Urxvt - powerline wrong color
- How to change shell from /bin/bash to /bin/zsh?
- Terminal zsh commands stopped working suddenly
- Should my $PATH be returning anything RVM related?
- Creating tmux layout with ZSH scripts
- Tmux breaks zsh aliases
- Cryptic error messages with npm and node
Related Questions in APPLE-M1
- Stuck at installing Python tensorflow on Apple M1 chip computer via Anaconda
- Segmentation Fault when Using SentenceTransformer Inside Docker Container
- installing transformers on M1 gives jax
- scipy 1.7.x from source build error with python 3.7.x on macbook M1 Sonoma
- Cant setup pgAPI "Database as a service" on Macbook M1 Air, errors on terminal
- Can execute python script on Mac M1 chip (ok on M2)
- please solve this error of mine of segmentation fault
- Issues with pip installing PyQt5 in conda on M2 MacBook
- heroku:container M1 mac pushing docker image layer stuck in retry loop
- Compilation Error When Building OpenSSL for iOS on macOS: 'inttypes.h' File Not Found
- Log message to the terminal using the log method from dart:developer on an Apple Silicon Mac
- Failed cvxpy instllation -> failed building qdldl wheel -> ... -> zsh: command not found: xcode-select
- Problem Visual Studio with Parallels Desktop on MacBook m1
- rollup hangs while building monorepo packages
- LLModel Error when trying to load a quantised LLM model from GPT4All on a MacBook Pro with M1 chip?
Related Questions in CHRUBY
- Why can't I set a default ruby with chruby in my .zprofile
- Ruby-Install ruby 2.7.x fails on m1 mac pro
- chruby, and Ruby gems "cannot load such file — "
- How to call chruby from a ruby script
- Why isn't chruby saving my default Ruby?
- How can I load zsh settings conditionally based on CPU?
- Setting ruby version separately with different app on Mac
- chruby and ruby not available when I use sudo
- How to uninstall chruby?
- capistrano with chruby looks for bundler in wrong ruby
- ruby-install fails when installing ruby 2.6.x and 3.0.x on mac osx 11.6
- Not able to run /etc/profile.d/chruby.sh while deploying using Capistrano in Rails
- chruby not changing to the proper version of ruby according to the value in .ruby-version on new terminal tab
- Upgraded to Yosemite and now ruby libraries are breaking
- chruby: How to use the default system ruby?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can use the output of
uname -m, like this:and place the actual stuff you want to happen instead of just printing the detected processor/architecture