03-03-2021 / Edit on Github

A collection of console terminals in serveral operation systems.

👉 Note: Bash Command Lines.

Windows #

Install cmder (drop-down by Ctr+`) and use this setting files. Files should be copied to,

# user-ConEmu.xml -> cmder/vendor/conemu-maximus5/ (or `cmder/config/`)
# user_aliases.cmd -> cmder/config/
# ubuntu.ico -> cmder/icons/

👉 Note: WSL2 on Windows.

If you use WSL?
  • Open settings > Startup > Tasks > ``. You can change icon by modify %\icons\cmder.ico to %\icons\ubuntu.ico.
  • Using Cascadia Code PL font!
Old options (using Windows Terminal)

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

# where windows terminal setting file locates?

👉 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

Why I don't use this anymore?: the flash on open the terminal is annoying. You have to open by yourself both of Windows Terminal and the plugin. It's better to use cmder.

Windows Terminal + WSL?

👉 Install Windows Terminal.

Change default setting theme to Linux Distro!

# Install Zsh
sudo apt-get install zsh
zsh --version

# make default
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# exit all windows and reopen

# check version
echo $SHELL # /usr/bin/zsh or similar

Continue to this note with following remarks:

  • You have to install all the fonts suggested in that note (just for sure).
  • You have to install MS's cascadia-code font (download zip and install all files there manually). Then you choose from Windows Terminal or cmder the font face is Cascadia Code PL.
  • This article may be interesting also.

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 #

# 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. More settings can be found here.

# 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.

powerlevel10k (I don't use it)
# 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:

Show the code
  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).