Mac Terminal Setup

SetUp Mac OS Terminal

sudo systemsetup -getcomputersleep
sudo systemsetup -setcomputersleep 60
sudo pmset -a displaysleep 40 disksleep 60 sleep 600

1. Install brew

If you do not have Xcode installed

sudo chown -R $(whoami) $(brew --prefix)/*
/bin/bash -c "$(curl -fsSL"

If you have Xcode installed

xcode-select -- install
curl -fsSL --output

Brew comes with git

git --version

git version 2.32.0 (Apple Git-132)

2. Install Sublime

brew install --cask sublime-text

3. Install Vim

brew install vim
brew install macvim
brew update

append the following line to ~/.vimrc

set clipboard=unnamed

4. Install iTerm 2

brew  install --cask iterm2

5. Check installation of Zsh

zsh --version
echo $0

6. Better Mac Terminal Window

Based on:

Install Oh My Zsh

Oh My Zsh uses a .zshrc file to save your customizations instead of a .bash_profile


sh -c "$(curl -fsSL"
2. Add the following in .zshrc

plugins=( git github zsh-syntax-highlighting zsh-autosuggestions bundler dotenv macos
  python pip pyenv virtualenv aws brew docker golang helm
  sudo tmux
  vi-mode vim-interaction
source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

3. Install the recommended font

brew install romkatv/powerlevel10k/powerlevel10k
echo "source $(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme" >>~/.zshrc

4. In order to re-configfure

p10k configure

5. Recommended plugins

git clone \ ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone \ ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

6. Verification of on-my-zsh

Check 'oh-my-zsh' folder

brew install tree
tree .oh-my-zsh -L  1

├── LICENSE.txt
├── cache
├── custom
├── lib
├── log
├── plugins
├── templates
├── themes
└── tools

Generating an SSH key

ssh-keygen -t rsa

Install Python3

brew install python3
brew install pyenv
python3 -m venv pyvirt
source pyvirt/bin/activate

AWS setup

Install the AWS CLI using GUI installer

Install the awscli tool via python pip:

pip3 install awscli --upgrade --user

Install the aws-iam-authenticator application

Install kubectl

Install eksctl (admin only)



aws configure

AWS Access Key ID [None]: XXXX
AWS Secret Access Key [None]: XXXXXXXXX
Default region name [None]: us-west-2
Default output format [None]: json

aws configure list
aws s3 ls

Leave a Reply