My Unix Terminal Setup
- Install
zsh
and dependencies.sudo apt install zsh curl # for Ubuntu
or
brew install zsh curl # for MacOS
This is an alternative to the
bash
shell that comes as default in many operating system. See this article for a comparison betweenbash
andzsh
. - Install
Oh My Zsh
(see the official website).sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Oh My Zsh
is a customizable framework for easily managing configurations and plugins forzsh
. - Install
zsh-autosuggestions
(see the official repo)
First clone its repository intooh my zsh
default plugin directory with the following command.git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
Then edit
~/.zshrc
(thezsh
config file similar to~/.bashrc
forbash
) and addzsh-autosuggestions
to the list of plugins, e.g.plugins=( # other plugins... zsh-autosuggestions )
If you re-launch your terminal, you should see history command hinting by now.
- Install
powerlevel10k
theme.- Install the recommended fonts for pretty icons (open the file and click “install”)
- Clone the repository with the following command
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
-
set
ZSH_THEME="powerlevel10k/powerlevel10k"
in~/.zshrc
. source ~/.zshrc
and configure following the prompts.
powerlevel10k
has massive performance improvement over the popularpowerlevel9k
theme.
Ta-da, there goes a beautiful and responsive terminal. Leave a comment about how you like / dislike about this setup.
Comments