Last modified on 01 Oct 2021.
A collection of console terminals in serveral operation systems. For bash command lines, check this note.
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
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.
- Preferences > Tab Keys > Hotkey > tick on Show/ hide all windows with a system-wide hotkey > choose key combination (Cmd + ~).
- Preferences > Profiles > Default > tab Windows > set Style to Full-Width Top of Screen and Screen to Screen with Cursor.
- Preferences > Appearance > check Exclude from Dock and ⌘-Tab Switcher
- 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
.
Fonts
Install font Source Code Pro:
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).