Sonny's blog ✌️

I love eating GPUs 💻

  • Posts
  • Who am I?
  • yes Français
  • 1 min

Basic installation and configuration of ZSH

Git

To download and install ZSH, we first need to install git and curl

sudo apt install git curl

ZSH

The commands come from this source

# Install ZSH
sudo apt install zsh
# Set default ZSH
chsh -s $(which zsh)
# Install oh-my-zsh
sh -c$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)

ZSH Autosuggestions

Commands come from this source

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

Then modify the ~/.zshrc file

plugins=(
  # Other plugins...
  # Do not use `,` to separate the list of plugins
  zsh-autosuggestions
)

ZSH theme

To change the ZSH theme, simply edit the .zshrc file.

nano ~/.zshrc
 
# Then edit the following line with the desired theme name
ZSH_THEME="amuse”

Tabby

Although Ubuntu's default terminal is functional, I prefer to use Tabby, which is more suited to my needs.

To install it, you need to download the file that corresponds to your architecture (example: tabby-XXX-linux-x64.deb), then install it via the following command:

sudo apt install ./tabby-XXX-linux-x64.deb

Change default terminal (Gnome)

Once tabby (or another terminal) has been installed, we'll set it as the default terminal.

The commands come from this source

gsettings set org.gnome.desktop.default-applications.terminal exec /usr/bin/tabby
gsettings set org.gnome.desktop.default-applications.terminal exec-arg “-x”