Sexy Terminal

Reading time ~1 minute

Sexy Terminal

 


Looks good?

Hyper Hyper + MSYS2 + ZSH on Windows

Hyper Hyper on Linux


Terminal on Windows

Hyper + MSYS2 + ZSH

MSYS2

MSYS2 is the terminal that I use to replace CMD on Windows.

Open MSYS2 in Right Click Menu

  1. Open Regedit
  2. HKEY_CLASSES_ROOT\Directory\Background\shell
  3. Add (Default) -> Display name
  4. Add Icon -> Display icon
  5. Add command(Default) -> “C:\Users\chfa\Development\msys64\mingw32.exe” “%V”

Hyper

Hyper is a shell on top of MSYS2. It makes MSYS2 more pretty and mordern.

See Hyper config

Zsh

See Zsh


Terminal on Linux

Hyper + ZSH

Hyper

Hyper takes care of your terminal on Linux.

See Hyper config

Zsh

See Zsh


Terminal on macOS

Hyper + Zsh or iTerm2 + Zsh

iTerm2

No doubt, iTerm2 is the most popular terminal on macOS.

Hyper

Now Hyper takes the place of iTerm2 in my mind.

See Hyper config

Zsh

See Zsh


Hyper - on all platforms

Hyper works on all platforms. It just looks beautiful.

Config

Ctrl or CMD + , to open config file

config: {
    // I like Source Code Pro, so I would like to change the font
    fontFamily: 'Source Code Pro, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',

    // Change the path to MSYS2
    shell: 'C:\\Users\\chfa\\Development\\msys64\\usr\\bin\\bash.exe',

    // for environment variables
    env: {
        TERM: 'msys', // Solve issue for vim and clear command not working properly on Windows
        MSYS2_PATH_TYPE: 'inherit' // inherit environment variables from Windows
    },
},

plugins: [
    "hypercwd",
    "hyper-highlight-active-pane",
    "hyper-material-theme",
    "hyper-search",
    "hyper-tabs-enhanced",
    "hyper-statusline",
],


Zsh - on all platforms

Zsh, also called the Z shell, is an extended version of the Bourne Shell (sh).

Zsh works on all platforms. I just like its theme and conveniency.

Why is a percent sign appearing before each prompt on zsh in Windows?

unsetopt PROMPT_SP

or

setopt PROMPT_CR
setopt PROMPT_SP
export PROMPT_EOL_MARK=""

To make this permanent, update your ~/.zshrc.

竟然无法拒绝你的打赏

微信支付

专业处理中国护照照片一次通过

专业处理中国护照照片一次通过 Continue reading

Python Notes

Published on April 01, 2021

Scrum Training Notes

Published on December 01, 2020