Sitemap
Aizhan Smith

Aizhan Smith

How to "command the line"

2 min readMar 28, 2020

--

Oh, theese great sensations from my new MacBook…

Ahhh, all this installations and improvements for the new OS…

So how to improve standard options for more convenient coding?

  • install homebrew
  • install iTerm2
  • install zsh
  • customize the zsh
  • make your own allies

Homebrew

Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple’s macOS operating system and Linux. The name is intended to suggest the idea of building software on the Mac depending on the user’s taste.

Life without Homebrew: you need to find links, download and install software, following the instructions.

Life with Homebrew:

brew install <software_package>

So open the Terminal and paste:

/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

See more:

https://brew.sh

Get Aizhan Smith’s stories in your inbox

Join Medium for free to get updates from this writer.

https://github.com/Homebrew

iTerm2

iTerm2 is a replacement for Terminal and the successor to iTerm.

brew cask install iterm2

Oh my ZSH!

Your terminal never felt this good before.

Before installing OMZSH! check your zsh

zsh --version 

I choosed manual installation:

brew install zshgit clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh

.. backuped my existing ~/.zshrc file & moved zshrc

cp ~/.zshrc ~/.zshrc.origcp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

I really liked this theme:

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
Press enter or click to view image in full size

Don`t forget to comment the default theme. Now open the iTerm2 & configure PowerLevel10 wizard and add plugins you need.

vi ~/.zshrc# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
docker
zsh-syntax-highlighting
zsh-autosuggestions
)

Also everybody suggest to add custom allies… For the moment I prefer to use everything in proper syntax. But here is an example:

# Example aliases
# alias zshconfig=”mate ~/.zshrc”
# alias ohmyzsh=”mate ~/.oh-my-zsh”
alias dkps=”docker ps”

And last line:

p10k configure

If the article was helpful, please, tweet it, like it, clap it =)

Thank you for reading! Good luck with improvements for your Terminal and…

Enjoy!

brew install <software_package>

--

--