Level up Mac Terminal Like Pro
Make your terminal talk of the town with super convenient autocomplete options and elevated user experience with tons of plugins and themes.
If You are a frequent terminal user this post would change the way you used to think about terminal on mac and would make it a breeze as iOS Developer.
Installing OhMyZsh on Mac: OhMyZsh is a framework for Zsh, the Z shell.
sh -c “$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
You can also install via homebrew
brew install zsh
Plugins: Oh My Zsh comes with lots of plugins for you to take advantage of.
Enabling iOS Specific Plugins:
plugins=(git
macos
xcode
swiftpm
pod)
Auto complete when you type command:
You’ll find the .zshrc file in your $HOME
directory. Open it with your favorite text editor and you'll see a spot to list all the plugins you want to load.
Git Clone the zsh-autocomplete
plugin in the OhMyZsh plugin folder.
sudo git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
zsh-autocomplete installation
Once that is done, add the plugin in the ~/.zshrc
file's plugin list.
plugins=(git
macos
xcode
swiftpm
pod
zsh-autosuggestions)
Installing Themes:
robbyrussell is the default theme for ohmyzsh. Once you find a theme that you’d like to use, you will need to edit the ~/.zshrc
file.You’ll see an environment variable (all caps) in there that looks like:
ZSH_THEME="robbyrussell"
Resources
Follow me Rahul Goel for more updates.