Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abmmhasan/7b49d72f12f11c073de2c1d1f5c9214f to your computer and use it in GitHub Desktop.
Save abmmhasan/7b49d72f12f11c073de2c1d1f5c9214f to your computer and use it in GitHub Desktop.
Linux UI

Install some required

# vim
sudo apt install vim curl wget git xz-utils

Install nix package manager (https://github.com/NixOS/nix)

curl -L https://nixos.org/nix/install | sh
# Add Repository - NOT NEEDED FOR Debian SID/testing
echo "deb http://deb.volian.org/volian/ scar main" | sudo tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list; wget -qO - https://deb.volian.org/volian/scar.key | sudo tee /etc/apt/trusted.gpg.d/volian-archive-scar-unstable.gpg

# Update repo
sudo apt update

# If Debian Sid or Debian 12/+ or Ubuntu 22+
sudo apt install nala

# You can update mirrors (if needed. to speed up your repo)
sudo nala fetch

Install ZSH

# install 
apt install zsh

# make default
chsh -s $(which zsh)

# after terminal restart you get prompt for setup, you can start blank

Install Oh-My-ZSH

# install  OMZ
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh

# Configuration (may need sudo for cp)
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
source ~/.zshrc

Replace apt with nala

# Edit zshrc file
vi ~/.zshrc

# Then add following in the end of file
apt() { 
  command nala "$@"
}
sudo() {
  if [ "$1" = "apt" ]; then
    shift
    command sudo nala "$@"
  else
    command sudo "$@"
  fi
}

# save the file

Add some fonts

# manually install these
https://github.com/romkatv/powerlevel10k#manual-font-installation

# optional
sudo apt install fonts-powerline

Install powerlevel10k

# Clone repo
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

# Cange to following in zshrc fiile
ZSH_THEME="powerlevel10k/powerlevel10k"

# Restart terminal & go through setup

# if you wanna launch setup again
p10k configure

Add some plugin

# Add auto-suggestion, syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

# Add zsh-autosuggestions & zsh-syntax-highlighting in plugins section of .zshrc
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

Additional

Fun ui

sudo apt install hollywood cmatrix cowsay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment