Skip to content

amrangry/dev_macOS_environment_setup

Repository files navigation

0. Mac OS

Upgrade Your Unsupported Mac To macOS Ventura https://www.youtube.com/watch?v=SSjkLO8BA2o

1. Setup Xcode

1-1 Enable spell-checking in Xcode

You can enable this feature by going to Edit menu > Format > Spelling and Grammar > Check Spelling While Typing. Ref: https://sarunw.com/posts/spell-checking-in-xcode

1-2 Adding files for unsupported iOS Devices

https://github.com/filsv/iOSDeviceSupport?

2. Xcode-Behaviors

  1. Download the Supported Scripts. https://github.com/amrangry/dev_macOS_environment_setup/tree/master/xCode%20Behavior%20Scripts
  2. Open Xcode.
  3. Open the Xcode preferences. Shortcuts: cmd,
  4. Select the behaviors tab.
  5. Press the + button on the bottom left.
  6. Create a name for the behavior. (ex. open terminal)
  7. Activate the Run check box.
  8. Click choose script.
  9. Right-click the name of the behavior you just created to specify the shortcut. (ex. cmd + shift + 5)

Note:

- how to create bash executable file  
  $ echo '#!/bin/bash\nopen -a Terminal "`pwd`"' > ~/terminal.sh && chmod +x ~/terminal.sh

3. Oh My Zsh

Supercharge your terminal with styles, plugins and features! Since Apple replaced Bash with Zsh in 2019 and it installs with a single shell command, this is a no-brainer. You can pick from a boatload of themes — or just use the default one like me, it’s plenty good!

Basically if you ever saw someone using a fancy terminal, chances are that he was using Oh My Zsh.

Plugins are also a huge part of the Oh My Zsh ecosystem. My must haves are:

git for displaying what branch I'm on + if there are any changes wd - shorthand for warp directory allows you to set up warp points in your file system and then jump to them from anywhere! If nothing else, this will prettify your Terminal — and who doesn’t want that?! Get Oh My Zsh now!

How to use macOS Recovery

https://support.apple.com/en-eg/HT204904

Command (⌘)-R Install the latest macOS that was installed on your Mac, without upgrading to a later version.* Option-Command-R Upgrade to the latest macOS that is compatible with your Mac.** Shift-Option-Command-R Requires macOS Sierra 10.12.4 or later Install the macOS that came with your Mac, or the version closest to it that is still available.

The Quickest Way to Show/Hide Hidden Files

Since the release of macOS Sierra, when in Finder, it is now possible to use the shortcut:

 CMD + SHIFT + .

Terminal

  pwd to print the current path

Xcode Command-line Tools

$ xcode-select --install

Modify text files in Terminal

* Open File for edit
 $ vi filepath
 
* Input mode

 press i to enter the insert mode 
 press q coomand 
 
* Ex mode
To get into it, press Esc and then : (the colon).
 The cursor will go to the bottom of the screen at a colon prompt.
 Write your file by entering :w 
 and quit by entering :q
 You can combine these to save and exit by entering :wq
 However, if you're finished with your file, it's generally more convenient to type Shift-z-z from command mode
 write 
 :wq!   --> write and quite 
 :q!   quite without saving 

Author

Amr Ahmed Elghadban

Amr Ahmed Elghadban (AmrAngry)

Email WhatsApp LinkedIn

GitHub StackOverflow

Twitter (formerly Twitter) Facebook Website

Contributing 🤘

All your feedback and help to improve this project is very welcome. Please create issues for your bugs, ideas and enhancement requests, or better yet, contribute directly by creating a PR. 😎

When reporting an issue, please add a detailed instruction, and if possible a code snippet or test that can be used as a reproducer of your problem. 💥

When creating a pull request, please adhere to the current coding style where possible, and create tests with your code so it keeps providing an awesome test coverage level 💪

Code of Conduct

I’m here to share my knowledge and findings as I work every day to improve our apps/demos for the community.

This is a space where we work together, openly and safely, as kind and considerate human beings.

We grow by giving and receiving positive, constructive feedback.

Let’s keep learning and building, one step at a time.

License

MIT License. Distributed under MIT License. Copyright 2025 Amr Elghadban

About

dev_macOS_environment_setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages