๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

IT/Information

[Mac] Oh my zsh + iTerm2 ์‚ฌ์šฉํ•˜๊ธฐ

 

ohmyzsh/ohmyzsh

๐Ÿ™ƒ A delightful community-driven (with 1500+ contributors) framework for managing your zsh configuration. Includes 200+ optional plugins (rails, git, OSX, hub, capistrano, brew, ant, php, python, et...

github.com

 

iTerm2 - macOS Terminal Replacement

iTerm2 by George Nachman. Website by Matthew Freeman, George Nachman, and James A. Rosen. Website updated and optimized by HexBrain

www.iterm2.com

์‚ฌ์šฉ ์ด์œ 

  ๋งฅ์—์„œ CLIํ™˜๊ฒฝ์„ ์‚ฌ์šฉํ•  ๋•Œ zsh์™€ ๊ธฐ๋ณธ ํ„ฐ๋ฏธ๋„์„ ์‚ฌ์šฉํ•  ์ˆ˜๋„ ์žˆ์ง€๋งŒ ๋” ํŽธํ•œ ๊ฐœ๋ฐœ์„ ์œ„ํ•ด oh my zsh ์™€ iTerm2๋ฅผ ๊ฐ™์ด ์ด์šฉํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋งŽ์•„์š”. ์ด์œ ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

 

  -  oh my zsh ์˜ ํ”Œ๋Ÿฌ๊ทธ์ธ๊ณผ ํ…Œ๋งˆ!

  -  iTerm2 ์˜ Terminal ๋ณด๋‹ค ๋งŽ์€ ๊ธฐ๋Šฅ๋“ค!

์„ค์น˜

macOS Catalina ์ด์ „ ๋ฒ„์ „์„ ์‚ฌ์šฉํ•˜๋Š” ๋งฅ์—์„œ๋Š” Shell์„ bash ์—์„œ zsh๋กœ ๋ฐ”๊ฟ”์ค์‹œ๋‹ค.

chsh -s /bin/zsh

 

oh my zsh๋ฅผ ์„ค์น˜ํ•ด์ค์‹œ๋‹ค.

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

 

๋‹ค์Œ์€ ํ„ฐ๋ฏธ๋„ ๋Œ€์‹  ์‚ฌ์šฉํ•  iTerm2๋„ ์„ค์น˜ํ•ด์ค์‹œ๋‹ค.

oh my zsh ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ค์น˜

  ์ €๋Š” ํ”Œ๋Ÿฌ๊ทธ์ธ 2๊ฐœ์ •๋„ ๊ธฐ๋ณธ์ ์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š”๋ฐ autosuggestions ์ด๋ž‘ syntax highlighting ์ž…๋‹ˆ๋‹ค.

 

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

 

ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ค์น˜ ํ›„์—๋Š” .zshrc ์— plugin ์„ค์ •์„ ์ถ”๊ฐ€ํ•ด์ค˜์•ผ๋ฉ๋‹ˆ๋‹ค.

plugin = (
  git
  zsh-autosuggestions
  zsh-syntax-highlighting
)

oh my zsh theme ์ ์šฉ

  oh my zsh์—๋Š” ์ ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ํ…Œ๋งˆ๊ฐ€ ๋งŽ์Šต๋‹ˆ๋‹ค. ์ €๋Š” avit ํ…Œ๋งˆ๊ฐ€ ๊น”๋”ํ•ด์„œ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š”๋ฐ ๋‹ค๋ฅธํ…Œ๋งˆ๋„ ๋งŽ์œผ๋‹ˆ ๋ฐ‘์— ๋งํฌ์—์„œ ์‚ฌ์šฉํ•˜์‹ค ํ…Œ๋งˆ ๊ณจ๋ผ๋ณด์‹œ๊ณ  ๋งˆ์Œ์— ๋“œ์‹œ๋Š” ํ…Œ๋งˆ๋กœ .zshrc ์—์„œ ZSH_THEME ๋ฅผ ๋ณ€๊ฒฝํ•ด์ฃผ์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

 

ohmyzsh/ohmyzsh

๐Ÿ™ƒ A delightful community-driven (with 1500+ contributors) framework for managing your zsh configuration. Includes 200+ optional plugins (rails, git, OSX, hub, capistrano, brew, ant, php, python, et...

github.com

iTerm2 Color Scheme ์ ์šฉ

  iTerm2 CLI ๋ฅผ ์ž์‹ ์ด ๋ณด๊ธฐ ํŽธํ•œ ์ปฌ๋Ÿฌ๋กœ ๋ฐ”๊พธ๋Š” ๊ฑด๋ฐ ๋งŽ์€ ์ƒ‰์กฐํ•ฉ์ด ์žˆ์œผ๋‹ˆ๊น ์ข‹์•„ํ•˜์‹œ๋Š”๊ฑฐ ์ฐพ์œผ์‹œ๋ฉด ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ์ €๋Š” snazzy ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์–ด์š”.

 

Iterm Themes - Color Schemes and Themes for Iterm2

iTerm Themes Intro This is a set of color themes for iTerm (aka iTerm2). Screenshots below and in the screenshots directory. Installation Instructions To install: Launch iTerm 2. Get the latest version at iterm2.com Type CMD+i Navigate to Colors tab Click

iterm2colorschemes.com

  ์ ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ์ผ๋‹จ ์„ ํƒํ•œ Color Scheme์˜ xml์„ name.itermcolors ํ˜•์‹์˜ ํŒŒ์ผ๋กœ ์ €์žฅํ•ด ๋†“๊ณ  iTerm2 - preferences - Profiles - Colors - Color Presents - Import ์—์„œ scheme๋ฅผ import ํ•ด์„œ ์„ค์ •ํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

 

๊ฒฐ๊ณผ

  ์ด์ œ ๋ชจ๋“  ์ค€๋น„๊ฐ€ ๋๋‚ฌ์–ด์š”! CLI ์—์„œ๋„ ํŽธํ•˜๊ฒŒ ๊ฐœ๋ฐœํ•ด์š”๐Ÿ˜†