zsh
is an alternative shell program to the default linux shell program bash
.
A shell is a text based Command Line Interface (CLI) with which we can interact with our computer to run programs and commands.
There are a number of advantages to using Zsh, primarily in the customizability and aesthetics department!
Open the Ubuntu terminal app In the terminal run the following commands: (follow the prompts and press y to confirm yes when it prompts you to)
sudo apt install zsh
chsh -s $(which zsh)
Exit the ubuntu terminal and reopen it. It will prompt you with the Z Shell configuration menu - press 2 to populate zsh with the recommended defaults
Oh My Zsh is a Zsh configuration framework that gives you way more customization options and a ton of visual themes to choose from .
-
Run the following command in the Ubuntu terminal
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
We need to install a custom font to enable the use of various icons that our terminal will use. Powerlevel10k recommends the MesloLGS NF font.
- Powerlevel10k font install instructions
- Download and install the following font files
-
[MesloLGS NF Regular.ttf](
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS NF Regular.ttf)
-
[MesloLGS NF Bold.ttf](
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS NF Bold.ttf)
-
[MesloLGS NF Italic.ttf](
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS NF Italic.ttf)
-
[MesloLGS NF Bold Italic.ttf](
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS NF Bold Italic.ttf)
-
- Right click the Ubuntu terminal header bar, click on 'Properties', click on the 'Font' tab, and change the font fo 'MesloLGS NF', or whichever other font you've installed!
Powerlevel10k is a fantastic theme for OhMyZsh that includes all the bells and whistles and has a very powerful configuration tool that makes it super easy to use
-
Run the following command in your terminal
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
-
Edit the
.zshrc
config file with our newly downloaded themecode ~/.zshrc
-
Find the ZSH_THEME line and set it to be
ZSH_THEME="powerlevel10k/powerlevel10k"
Windows terminal is an application that gives you more flexibility and customization options with your terminal window than the regular terminal.
Nice features include tabs and color themes
-
Install from the Windows Store
-
Go to Settings -> Profiles -> Ubuntu -> Click on 'Open JSON file' in the bottom left
-
Open the JSON file with VS Code or notepad
-
Under "profiles" -> "list" find the one with
"name": "Ubuntu"
, and add:"commandline": "wsl.exe ~", "fontFace": "MesloLGS NF",
With this done you can now start using the Windows Terminal instead of the Ubuntu terminal!
- Read this intro
- [✔️] Alternative OS intro
- Prior to the first day of class: Enable WSL and Install Ubuntu from the Microsoft Store app
- [✔️] WSL Setup
- On the first day of class, your instructors will help you with Installfest
- [✔️] Installfest
- Optional visual and usability upgrades for your terminal
- [✔️] Upgrades
- Unit 2-4 Installfest