<commit_before>---
layout: post
title: Sexy Terminal
description: This note is about how to make a sexy terminal.
modified: 2019-05-01T00:00:00.000Z
tags:
  - Others
comments: true
image:
  feature: 2014-01-01-terminal.jpg
---
# Sexy Terminal

<div class="social-share" data-initialized="true">
    <a href="#" class="social-share-icon icon-weibo"></a>
    <a href="#" class="social-share-icon icon-qq"></a>
    <a href="#" class="social-share-icon icon-wechat"></a>
</div>
<link rel="stylesheet" href="https://resource.chun.no/sharejs/css/share.min.css">
<script src="https://resource.chun.no/sharejs/js/social-share.min.js"></script>

### &nbsp;

---

## Looks good?

![Hyper]({{ site.url }}/images/2014-01-01-terminal/hyper_windows.png)
Hyper + MSYS2 + ZSH on Windows

![Hyper]({{ site.url }}/images/2014-01-01-terminal/hyper_linux.png)
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.

<a href="#hyper---on-all-platforms">See Hyper config</a>

#### Zsh

<a href="#zsh---on-all-platforms">See Zsh</a>

---

## Terminal on Linux

`Hyper` + `ZSH`

#### Hyper

Hyper takes care of your terminal on Linux.

<a href="#hyper---on-all-platforms">See Hyper config</a>

#### Zsh

<a href="#zsh---on-all-platforms">See Zsh</a>

---

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

<a href="#hyper---on-all-platforms">See Hyper config</a>

#### Zsh

<a href="#zsh---on-all-platforms">See Zsh</a>

---

## Hyper - on all platforms

Hyper works on all platforms. It just looks beautiful.

#### Config

`Ctrl or CMD` + `,` to open config file

``` javascript
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
    },
};
<commit_msg>Updated terminal<commit_after>---
layout: post
title: Sexy Terminal
description: This note is about how to make a sexy terminal.
modified: 2019-05-01T00:00:00.000Z
tags:
  - Others
comments: true
image:
  feature: 2014-01-01-terminal.jpg
---
# Sexy Terminal

<div class="social-share" data-initialized="true">
    <a href="#" class="social-share-icon icon-weibo"></a>
    <a href="#" class="social-share-icon icon-qq"></a>
    <a href="#" class="social-share-icon icon-wechat"></a>
</div>
<link rel="stylesheet" href="https://resource.chun.no/sharejs/css/share.min.css">
<script src="https://resource.chun.no/sharejs/js/social-share.min.js"></script>

### &nbsp;

---

## Looks good?

![Hyper]({{ site.url }}/images/2014-01-01-terminal/hyper_windows.png)
Hyper + MSYS2 + ZSH on Windows

![Hyper]({{ site.url }}/images/2014-01-01-terminal/hyper_linux.png)
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.

<a href="#hyper---on-all-platforms">See Hyper config</a>

#### Zsh

<a href="#zsh---on-all-platforms">See Zsh</a>

---

## Terminal on Linux

`Hyper` + `ZSH`

#### Hyper

Hyper takes care of your terminal on Linux.

<a href="#hyper---on-all-platforms">See Hyper config</a>

#### Zsh

<a href="#zsh---on-all-platforms">See Zsh</a>

---

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

<a href="#hyper---on-all-platforms">See Hyper config</a>

#### Zsh

<a href="#zsh---on-all-platforms">See Zsh</a>

---

## Hyper - on all platforms

Hyper works on all platforms. It just looks beautiful.

#### Config

`Ctrl or CMD` + `,` to open config file

``` javascript
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: [
  'hyper-material-theme',
  'hyper-tab-icons',
],

{'fraction_non_alphanumeric': 0.1670106961906549, 'fraction_numerical': 0.024394820791893413, 'mean_word_length': 3.3688524590163933, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 55, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4912015', 'n_tokens_mistral': 2021, 'n_tokens_neox': 1852, 'n_words': 552}