A new variety of Mac Trojan horse malware has been caught in the wild. And, surprisingly, the latest Trojan horses don’t claim to be Adobe Flash Player installers this time. Seekers of several macOS applications—notably including iTerm2, a third-party Terminal app for Mac—may have unintentionally downloaded an OSX/ZuRu Trojan horse. From here: http. I've since stopped using Apple's Terminal application in favor of iTerm2 ( iterm2.com). As of Mac OS X Lion 10.7, Terminal.
Features of iTerm
According to it's website:
• Split Panes
• Hotkey Window
• Search
• Autocomplete
• Mouseless Copy
• Paste History
• Instant Replay
• Configurability
• Unixyness
• 256 Colors (or more!)
• and many more..
Download Iterm2 Mac Os X
Install iTerm
We'll install it and customize it too.
- Download it from the original source
That’s it, you have successfully installed iTerm in macOS.
Install Oh My Zhs
Install it from the main source, look for the curl install and paste it on your terminal, soon it will have a whole other look.
That’s it, you have successfully installed Oh My Zsh.
Themes
For oh-my-zsh theme:
In order to enable a theme, set ZSH_THEME
to the name of the theme in your ~/.zshrc
, before sourcing Oh My Zsh; for example: ZSH_THEME=robbyrussell
If you do not want any theme enabled, just set ZSH_THEME
to blank: ZSH_THEME='
The theme that comes with oh-my-zsh (robbyrussell) is pretty good, but in case you want more there are plenty of options.
Another good theme I like is called spaceship-prompt, You can install it like this:
All custom themes are located here: $ZSH_CUSTOM/themes/
so do:
git clone https://github.com/denysdovhan/spaceship-prompt.git '$ZSH_CUSTOM/themes/spaceship-prompt' && ln -s '$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme' '$ZSH_CUSTOM/themes/spaceship.zsh-theme'
Now set ZSH_THEME='spaceship'
in your .zshrc
Plugins
The array of plugins can be found here.
This are the ones that I like:
Other Tweaks to the terminal
- nvim - a better vim shell
- Strong defaults
- Modern terminal features such as cursor styling, focus events, bracketed paste
- Built-in terminal emulator
- Remove default “Last login:” message
Run touch ~/.hushlogin
Item2 Theme
- Run VSC on zsh so you can run:
code
on the terminal and open it
- Lunch VS Code
- Open the Command Palette and type:
>shell command
- Select the first option and restart the terminal for the new
$PATH
value to take effect. You'll be able to type 'code .' in any folder to start editing files in that folder.
Sources: 1, 2