Skip to content

Instantly share code, notes, and snippets.

@gnppro
Last active March 31, 2022 19:06
Show Gist options
  • Save gnppro/92fad98dc2601a33fa93227325805770 to your computer and use it in GitHub Desktop.
Save gnppro/92fad98dc2601a33fa93227325805770 to your computer and use it in GitHub Desktop.
Customize the Ubuntu 20.04 LTS Command Line

Custom Terminal - Ubuntu 20.04 LTS

zsh

apt install zsh

Make it your default shell:

chsh -s $(which zsh)
echo $SHELL

Oh My Zsh

via curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

via wget

sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Manual Updates

upgrade_oh_my_zsh

Fonts

git clone https://github.com/ryanoasis/nerd-fonts.git --depth 1
git clone https://github.com/powerline/fonts.git --depth=1

Theme

Colors

Guake + Byobu (with tmux) + zsh + Oh My Zsh + themes + plugins

sudo apt install guake byobu
byobu-enable
which byobu | sudo tee -a /etc/shells

guake-prefs

dconf write /apps/guake/general/default-shell "'/usr/bin/byobu'"
dconf write /apps/guake/general/window-tabbar false
dconf write /apps/guake/keybindings/local/switch-tab2 "'disabled'"

Alacritty

~/.config/alacritty/alacritty.yml

font:
  normal:
    family: "MesloLGS NF"
  size: 13
window:
    decorations: "none"

Plugins

.zshrc

plugins=(git node yarn npm docker docker-compose z zsh-autosuggestions zsh-syntax-highlighting extract)

Environment variables

Example:

export PATH="/usr/local/lib/ruby/gems/2.5.0/bin/:$PATH"

Environment variables

Node.js

NVM

Node Version Manager

Docker

How To Install and Use Docker on Ubuntu 20.04

docker-compose

How To Install and Use Docker Compose on Ubuntu 20.04

Python

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment