Terminal and Shell
A simple guide on how to configure a personal terminal and shell
· 2 min read
Prerequisite #
Some nerd font of your choice. Find more via Nerd Fonts.
Choices #
Some terminal of your choice, popular ones include
Some shell of your choice, popular ones include
Installation - Terminal and Shell #
Now we want to use some fancy terminals and shell just because we can. Let us install zsh and WezTerm in this guide.
Shell #
We will now install and configure zsh with oh-my-zsh.
In command lines under
Ubuntu, we run:> apt install zshWe can do a simple check to see if
zshis installed properly:> zsh --versionThat is pretty much it, although we can now employ
oh-my-zshforzshconfiguration. We can check for more information on its GitHub page. We now installoh-my-zshvia terminal:> sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"Further customization can be performed by editting
~/.zshrc. For example, let us default in entering our home directory at shell launch.> cd ~ > echo "# Enter home dir" >> ~/.zshrc > echo "cd ~" >> ~/.zshrc
Terminal #
We will now install and configure WezTerm with starship.
For a WSL setup, it is adviable to install our terminal under Windows file system. In terminal we run:
> winget install wez.wezterm > winget upgrade wez.weztermAnd that’s pretty much it, we can customize
WezTermand other terminal such aspwshwithstarship. To do this, with your terminal under Linux file system:> curl -sS https://starship.rs/install.sh | shNow that we have both our terminal and shell installed, we can get
starshipto customize our terminal via:> cd ~ > echo "# Init starship for zsh" >> ~/.zshrc > echo 'eval "$(starship init zsh)"' >> ~/.zshrcWe can now apply some
starshipcustomization to our terminal by including astarship.tomlfile in~/.config:> starship preset nerd-font-symbols -o ~/.config/starship.toml
Remarks #
There are many customizations that we can apply to these terminal and shells to improve our own efficiency, work habits, and the enjoyment of it.
One thing to take note for VSCode integration with zsh is that we should set for VSCode to also employ zsh over bash in its builtin terminal.