Last modified on 01 Oct 2021.

A collection of console terminals in serveral operation systems. For bash command lines, check this note.

👉 Bash Command Lines.

Windows

I use Windows Terminal: my setting file, read this tut for more.

# where windows terminal setting file locates?
C/Users/dinha/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState/settings.json

Dracular theme? Follow this tut.

Drop-down (quake style) whenever Ctrl + ~? Using this app + this setting file. Don’t forget to put it in a fixed location and make it starting with your windows

cmder (drop-down): my setting files.

Linux

Guake terminal

  • Download guake terminal
  • Install Zsh, follow this note.
  • Save/Restore settings:

    # save settings
    guake --save-preferences ~/Downloads/guake_prefs
    # load settings
    guake --restore-preferences ~/Downloads/guake_prefs
    

MacOS

Using iTerms2. Download its settings. Below is the guide of making iTerms2 working like Guake.

  1. Preferences > Tab Keys > Hotkey > tick on Show/ hide all windows with a system-wide hotkey > choose key combination (Cmd + ~).
  2. Preferences > Profiles > Default > tab Windows > set Style to Full-Width Top of Screen and Screen to Screen with Cursor.
  3. Preferences > Appearance > check Exclude from Dock and ⌘-Tab Switcher
  4. Run on startup: System Preferences > Users and Groups > Login Items > [+] > choose iTerm.

Zsh

# CLI tools for Xcode
xcode-select -r
xcode-select —-install

# install hombrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Zsh (Linux)

👉 Check WSL2 + Windows + Windows Terminal

Install Zsh + oh-my-zsh

# check is installed
zsh --version
# install (linux)
sudo apt install zsh

# install (macos - integrated)
# make zsh default bash
chsh -s $(which zsh) # log out & log in
# check
echo $SHELL # /bin/zsh  or similar
# install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Plugins

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

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

After installing plugins, put them in ~/.zshrc,

plugins=(git docker docker-compose zsh-syntax-highlighting dnf npm)
# for me
# plugins=(git docker docker-compose npm ruby python emoji)

spaceship-prompt theme

This is my choice. Source code.

# need to install oh-my-zsh first
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"

Set ZSH_THEME="spaceship" in your .zshrc.

# theme powerlevel10k
git clone https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
# after installing
p10k configure

Fonts

Install font Source Code Pro:

  1. Follow instruction here. If some folders don’t exist, create them!
    wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
    wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
    mv PowerlineSymbols.otf ~/.local/share/fonts/
    fc-cache -vf ~/.local/share/fonts/
    mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
    
  2. Download Source Code Pro and move all downloaded otf fonts to
    mv SourceCode-* ~/.local/share/fonts/
    

Powerline font,

sudo apt-get install fonts-powerline

In terminal, choose the corresponding installed fonts.

Add alias to ~/.zshrc (search “alias” to find the place to put).