Skip to content

Instantly share code, notes, and snippets.

@tgmarinho
Forked from santospatrick/terminal-oh-my-zsh.md
Created May 8, 2021 18:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tgmarinho/5bb7ae89dd73ba6ce7faf1111b79cd4f to your computer and use it in GitHub Desktop.
Save tgmarinho/5bb7ae89dd73ba6ce7faf1111b79cd4f to your computer and use it in GitHub Desktop.
My Linux Terminal

Linux Terminal with oh-my-zsh

Every step in this tutorial is required for making terminal look as the image below.

terminal view of completed tutorial setup

ZSH & OH-MY-ZSH

sudo apt-get install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

OH-MY-ZSH Plugins

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

~/.zshrc

# Defaults
export PATH=$HOME/bin:/usr/local/bin:$(yarn global bin):$PATH
export ZSH=/home/$(whoami)/.oh-my-zsh
export DEFAULT_USER="$(whoami)"
export EDITOR="code --reuse-window"
export TERM="xterm-256color"

# Fast edit config files aliases
alias ez="$EDITOR ~/.zshrc"
alias eb="$EDITOR ~/.bashrc"
alias eg="$EDITOR ~/.gitconfig"

# Spaceship
SPACESHIP_PROMPT_ADD_NEWLINE="false"

# ZSH theme & plugins
ZSH_THEME="agnoster"
# or ZSH_THEME="spaceship"
# Follow the steps at: https://github.com/denysdovhan/spaceship-prompt#oh-my-zsh

plugins=(git z zsh-autosuggestions zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh

Git

git config --global pager.branch "false"
git config --global core.editor "nano"

NVM (Node.js Version Manager)

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
nvm install --lts
nvm alias default node

Change default terminal

chsh -s /bin/zsh
# then log out and log in from linux

Guake Terminal

sudo apt-get install guake

Meslo font (download this)

Guake Terminal Settings

setting zsh as default interpreter in guake terminal setting meslo font and colors in guake terminal setting f9 as shortcut in guake terminal

Features

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