Powering up your Terminal in Mac

problem

Programmers and tech enthusiasts use the terminal to communicate with their system at a deeper level. Following are some of the tools to make the terminal and your experience more powerful and enjoyable.

SOLUTION - REPLACE CLASSIC TERMINAL

Use iTerm2 instead of the classic terminal. You can download it from their official website. This terminal offers a variety of cool features like

  • splitting the terminal in different panels
  • having multiple tabs
  • keep session and different profiles
  • search
  • extend its functionality by its Python API
  • and much more features

oh-my-zsh

Change the default shell to a better one. Mac uses bash by default. A better one would be the z shell. On top of that Oh-my-zsh is a framework for the z shell (zsh).

It requires that you have git (usually pre installed) and zsh installed. It can be checked by

				
					zsh --version
				
			

If it does not exist, then you can follow these instructions that also show how to set it as default.

After installing and setting as default the zsh shell, you can easily install oh-my-zsh by executing the following command in your terminal:

				
					sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"           
				
			

Extracted from the instructions on their website

using it

Now that is installed, you can customize it by changing theme and plugins. That is it, you now have a super customizable shell. Make it look nice to your eyes by selecting a desirable theme (e.g. the fox) and adding a plugin to enrich functionality like auto-completing commands for git, opening Jira tickets for better workflow, etc.

For instance, you wish to google a term directly from the terminal instead of going to the web browser. That can be done by using the web-search plugin.

For example, googling for “powering up your terminal”:

				
					google powering up your terminal
				
			

It will open automatically the default web browser and google it. It can also search on stackoverflow

				
					stackoverflow oh my zsh
				
			

It will open automatically the default web browser and google it. It can also search on stackoverflow

also on goodreads, scholar, and more as listed in their examples on github.

And that is just one of the many plugins out there.

conclusion

Bit caution on adding too many plugins as they tend to slow down the shell. Have a look on their cheatsheet. In general, it is pretty cool. Adding this type of tool set in your repertoire, definitely makes you faster and boost your productivity. Thanks for reading.

Share it!

Facebook
Twitter
LinkedIn
Reddit
Picture of Ellion

Ellion

Professional IT consultant, writer, programmer enthusiast interested in all sorts of coding.
Eats all cookies 🍪

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

Google Analytics Cookies

This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

HotJar Cookies

We use Hotjar in order to better understand our users’ needs and to optimize this service and experience. Hotjar is a technology service that helps us better understand our users’ experience (e.g. how much time they spend on which pages, which links they choose to click, what users do and don’t like, etc.) and this enables us to build and maintain our service with user feedback. Hotjar uses cookies and other technologies to collect data on our users’ behavior and their devices. This includes a device's IP address (processed during your session and stored in a de-identified form), device screen size, device type (unique device identifiers), browser information, geographic location (country only), and the preferred language used to display our website. Hotjar stores this information on our behalf in a pseudonymized user profile. Hotjar is contractually forbidden to sell any of the data collected on our behalf.

For further details, please see the ‘about Hotjar’ section of Hotjar’s support site.