Terminal setup for zsh in macOS, Linux, and Windows.
For PowerShell configuration, see the posh config.
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
Please install at least one of the below fonts for your terminal, Menlo is recommended.
See all Nerd Fonts.
Fira Code is recommended for your editor such as VS Code.
brew tap homebrew/cask-fonts
brew install --cask font-fira-code
sudo apt install fonts-firacode
This is for macOS only
- Open your iTerm > Preferences > Profiles > Other Actions > Import JSON Profiles > Choose this iTerm Profile
- After you setup: Other Actions > Set as Default
- Restart iTerm
- Open your Windows Terminal > Settings > Open JSON file
- Copy json configs from this config file
- Paste the config to the Windows Terminal config json you just opened
- Restart Windows Terminal
Since Catalina, macOS will use zsh as the default shell, so you may have zsh built-in in your system
brew install zsh
sudo apt update && sudo apt -y install zsh
chsh -s $(which zsh)
Then restart your terminal
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.
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.
If you would like to customize the color scheme of powerlevel10k, please see This chart.