본문 바로가기
★━Mac〃

[MacOS] iterm2 fishshell 및 p10k 테마 적용하기

by Raynee 2022. 3. 25.
반응형

많은 shell 중에 fish shell을 사용 해보려고 합니다. 

 

자동완성 기능이 다른것 보가 강한 것 같고 p10k 테마도 적용이 가능합니다. 

 

설치 과정

1. HomeBrew 설치

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

2. MesloLGS 폰트 다운 받기 (아이콘이 깨짐 방지)

MesloLGS NF Regular.ttf
1.23MB

3. Fish Shell 설치하기

#### 명령어 #### 

brew install fish

#### 사용 예제 #### 
> brew install fish
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/core, homebrew/cask and homebrew/cask-drivers).
==> New Formulae
bvm                       gemgen                    kubekey                   observerward              testkube
epinio                    go@1.17                   ltex-ls                   postgraphile              trivy
fortran-language-server   inih                      mapproxy                  rslint
fourmolu                  koka                      nickel                    stylish-haskell
==> Updated Formulae
Updated 873 formulae.
==> Renamed Formulae
richmd -> rich-cli
==> Deleted Formulae
gstreamermm
==> New Casks
abbyy-finereader-pdf             obs-ios-camera-source            prowlarr                         unicopedia-plus
jetbrains-gateway                paddle-easydl                    roonbridge
macast                           paragon-camptune                 rwts-pdfwriter
mediahuman-audio-converter       pingnoo                          supernotes
==> Updated Casks
Updated 524 casks.
==> Deleted Casks
finereader                                                        profilemanager

==> Downloading https://ghcr.io/v2/homebrew/core/ncurses/manifests/6.3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/ncurses/blobs/sha256:15ee5cba182428fe2bcd80da6605214104b77e808a484c97ab281741f1a66
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:15ee5cba182428fe2bcd80da6605214104b77e808a484c
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pcre2/manifests/10.39
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pcre2/blobs/sha256:3b6478346d722d13c9dd556a90949319417224006939b1e46b06a189dc8c526
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:3b6478346d722d13c9dd556a90949319417224006939b1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/fish/manifests/3.4.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/fish/blobs/sha256:58212e21816352f12a9e5a4de5269320db6796811c14e5a8e3e4e687ff4e6528
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:58212e21816352f12a9e5a4de5269320db6796811c14e5
######################################################################## 100.0%
==> Installing dependencies for fish: ncurses and pcre2
==> Installing fish dependency: ncurses
==> Pouring ncurses--6.3.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/ncurses/6.3: 3,968 files, 9.3MB
==> Installing fish dependency: pcre2
==> Pouring pcre2--10.39.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/pcre2/10.39: 230 files, 6.2MB
==> Installing fish
==> Pouring fish--3.4.0.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/fish/3.4.0: 1,405 files, 14.8MB
==> `brew cleanup` has not been run in the last 30 days, running now...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /Users/raynee/Library/Caches/Homebrew/portable-ruby-2.6.8.yosemite.bottle.tar.gz... (8.8MB)
Removing: /Users/raynee/Library/Caches/Homebrew/mas_bottle_manifest--1.8.5... (5.2KB)
Removing: /Users/raynee/Library/Caches/Homebrew/Cask/teamviewer--15.26.4.dmg... (79.8MB)
Removing: /Users/raynee/Library/Caches/Homebrew/Cask/virtualbox--6.1.30,148432.dmg... (119.2MB)
Removing: /Users/raynee/Library/Caches/Homebrew/Cask/only-switch--2.2.1.dmg... (4.9MB)
Removing: /Users/raynee/Library/Logs/Homebrew/mas... (64B)

3. P10K 테마 적용하기

#### 명령어 ####

set -l _tide_tmp_dir (command mktemp -d)
curl https://codeload.github.com/ilancosman/tide/tar.gz/HEAD | tar -xzC $_tide_tmp_dir
command cp -R $_tide_tmp_dir/tide-HEAD/{completions,conf.d,functions} $__fish_config_dir
exec fish --init-command "set -g fish_greeting; emit _tide_init_install"


#### 사용 예제 ####
❯ set -l _tide_tmp_dir (command mktemp -d)
  curl https://codeload.github.com/ilancosman/tide/tar.gz/HEAD | tar -xzC $_tide_tmp_dir
  command cp -R $_tide_tmp_dir/tide-HEAD/{completions,conf.d,functions} $__fish_config_dir
  exec fish --init-command "set -g fish_greeting; emit _tide_init_install"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 30992  100 30992    0     0  80708      0 --:--:-- --:--:-- --:--:-- 80708
Configure tide prompt? [Y/n] y

P10K 테마가 설치가 되었고, 설정 화면으로 넘어 갑니다.

기호에 맞게 선택을 계속 진행 하면 됩니다. 

 

최종적으로 적용된 화면입니다. 

명령어도 정상적인건 파란색으로 비정상적인건 빨간색으로 표시하고, 한번 작성한 명령어는 뒤에 보이게 되고 사용하려면 키보드 > 방향을 눌러주면 다적을필요가 없다.

없는 명령어

 

있는 명령어
자동 완성 기능
한번 작성한 내용은 기억하고 있어 키보드 > 눌러 사용 가능

 

 

반응형

'★━Mac〃' 카테고리의 다른 글

[MacOS] 나만의 초기설정 값  (0) 2022.09.08
단축키  (0) 2022.04.24
[MacOS] Mac에서 java 제어판 안뜰때  (1) 2022.02.18
MacOS NFS 설정  (0) 2022.02.12
썬더버드 한글적용  (0) 2022.02.12

댓글