Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between iTerm2, zsh and oh-my-zsh

I have been using the default bash of linux for over 1 year and one of colleague recommended me switch over to using iTerm2 alongwith zsh and oh-my-zsh. He also recommended this post to install and configure those :

https://www.freecodecamp.org/news/how-to-configure-your-macos-terminal-with-zsh-like-a-pro-c0ab3f3c1156/

When i asked what are they the answer he gave me was kind of confusing, so i ask you overlords kind do tell mewhat actually those are and if you have some insights about what actually a bash is, i would be happy to learn that too :)

Thank you all Pawan

like image 261
Pawan Saxena Avatar asked Oct 12 '20 00:10

Pawan Saxena


People also ask

What is the difference between zsh and oh my zsh?

When you install ZSH, you're simply downloading new software and instructing your terminal to use it (rather than bash) to process commands and run scripts. oh-my-zsh allows you to manage your zsh configurations, themes, and plugins to customize the appearance and functionality of your shell.

Is iTerm2 bash or zsh?

iterm2 use bash as well as zsh.

What is the point of oh my zsh?

It is the most popular framework for managing Zsh configuration, plugins, and themes. It will help you transition from using your current shell to Zsh in the easiest way possible. Although Oh My Zsh can do many other things, it is the most famous for its ability to easily manage a ton of themes and plugins.


1 Answers

When you are at a command line, typing in commands and reading output you are working in a program called a terminal (or console on windows). The terminal is taking your commands and forwarding them to a program, called a shell, who's job is to actually execute the commands you type in to the terminal and possibly print some output. The output from the shell is then displayed in your terminal window.

The terminal is like the web browser and the shell is like the javascript engine. Your browser takes your input (click, keypresses, mousemoves) and sends them along to javascript which processes those actions and the browser displays the results.

iTerm2 is a terminal emulator meant to be a replacement for macOS terminal and is far more feature rich. It's the terminal program providing you with a command line interface.

ZSH is a specific shell, as is bash, the same way linux is a specific operating system. There are different shells that provide different syntax, features and functionality. There's bash, cshell, fish, powershell, zsh and others.

Installing ZSH, you are essentially downloading a new program and telling your terminal to use that program (say, instead of bash) to process the commands and run scripts.

oh-my-zsh provides a way of managing your zsh configurations, themes and plugins to extend the look and functionality of your shell.

I can't reccomend this setup enough- it's like the cadillac of command lines. You have a good friend there.

like image 94
tryexceptcontinue Avatar answered Oct 24 '22 23:10

tryexceptcontinue