Skip to content

saltchang/terminal-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal Setup

Terminal setup for zsh in macOS, Linux, and Windows.

Windows Terminal Demo

For PowerShell configuration, see the posh config.

Clone This Project

It's recommended to put the project under $HOME/projects/personal:

mkdir -p $HOME/projects/personal
cd $HOME/projects/personal

Then clone this project:

  • use SSH

    git clone git@github.com:saltchang/terminal-setup.git
  • use HTTPS

    git clone https://github.com/saltchang/terminal-setup.git

Install Fonts

Nerd Fonts

Please install at least one of the below fonts for your terminal, Menlo is recommended.

See all Nerd Fonts.

FiraCode

Fira Code is recommended for your editor such as VS Code.

macOS

brew tap homebrew/cask-fonts
brew install --cask font-fira-code

Ubuntu/Debian

sudo apt install fonts-firacode

Install Terminal App

This is for macOS only

macOS

Config Terminal

Config iTerm

  1. Open your iTerm > Preferences > Profiles > Other Actions > Import JSON Profiles > Choose this iTerm Profile
  2. After you setup: Other Actions > Set as Default
  3. Restart iTerm

Config Windows Terminal

  1. Open your Windows Terminal > Settings > Open JSON file
  2. Copy json configs from this config file
  3. Paste the config to the Windows Terminal config json you just opened
  4. Restart Windows Terminal

Install zsh

macOS

Since Catalina, macOS will use zsh as the default shell, so you may have zsh built-in in your system

brew install zsh

Ubuntu/Debian

sudo apt update && sudo apt -y install zsh

Change zsh to Your Default Shell

chsh -s $(which zsh)

Then restart your terminal

Setup the Shell

First, if you're using macOS, please install the coreutils library:

brew install coreutils

To setup the shell, just run the installation script:

cd terminal-setup

./install.sh

It will create a soft link from ~/.zshrc to the one in this project, check dotfiles/.zshrc.

Now restart your terminal or run source ~/.zshrc, you should see the new face of the shell.

Customize Your Shell

Run the below command to open your .zshrc:

edit-rc

Or use the shortcut to go to the terminal-setup repo:

go-rc-repo

The you can start to customize your shell.

Color for powerlevel10k

If you would like to customize the color scheme of powerlevel10k, please see This chart.