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

OS

oh-my-zsh ํ…Œ๋งˆ ๋ฐ ์œ ์šฉํ•œ ํ”Œ๋Ÿฌ๊ทธ์ธ ์ •๋ฆฌ

์–ด์ฐจํ”ผ zsh ์ ์šฉ๊นŒ์ง€ ๋๋ƒˆ์œผ๋ฉด window๋‚˜ mac์ด๋‚˜ ubuntu๋‚˜ ์„ค์ •๋ฐฉ๋ฒ•์€ ๋˜‘๊ฐ™๋‹ค.

 

 

oh-my-zsh ํ…Œ๋งˆ ์ˆ˜์ •ํ•˜๊ธฐ!
vi ~/.zshrc

์œ„ ํŒŒ์ผ์— ZSH_THEME ์˜ต์…˜์„ ์ˆ˜์ •ํ•ด์ฃผ๋ฉด ๋œ๋‹ค. ๊ธฐ๋ณธ์€ robbyrussell๋กœ ๋˜์–ด์žˆ๋‹ค.

 

oh-my-zsh์—์„œ ๊ธฐ๋ณธ์ ์œผ๋กœ ์ œ๊ณตํ•˜๋Š” ํ…Œ๋งˆ๋Š” ๋‹ค์Œ ์‚ฌ์ดํŠธ๋ฅผ ์ฐธ๊ณ ํ•ด์„œ ์˜ต์…˜ ๊ฐ’๋งŒ ๋ณ€๊ฒฝํ•ด์ฃผ๋ฉด ๋˜๋ฉฐ.

๐Ÿ‘‰๐Ÿป ohmyzsh/ohmyzsh Themes

 

์‚ฌ์šฉ์ž๋“ค์ด ๋งŒ๋“ค์–ด์„œ ๋ฐฐํฌํ•˜๋Š” ํ…Œ๋งˆ๋Š” ํ…Œ๋งˆ๋ฅผ ๋‹ค์šด๋กœ๋“œ ํ›„ ์˜ต์…˜ ๊ฐ’์„ ๋ณ€๊ฒฝํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

๐Ÿ‘‰๐Ÿป ohmyzsh/ohmyzsh External themes

 

์“ฐ๋‹ˆ์˜ ๊ฒฝ์šฐ ์‚ฌ์šฉ์ž ๋ฐฐํฌ ํ…Œ๋งˆ์ธ typerwritten ํ…Œ๋งˆ๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค.

 

 

 

source ~/.zshrc

์ˆ˜์ • ํ›„ ํ„ฐ๋ฏธ๋„ ์ฐฝ์„ ๊ป๋‹ค ํ‚ค๋ฉด ์ ์šฉ์ด ๋˜๋Š”๋ฐ, ํ„ฐ๋ฏธ๋„ ์ฐฝ์„ ์ƒˆ๋กœ ํ‚ค์ง€์•Š๊ณ  ๋ฐ”๋กœ ์ ์šฉํ•˜๊ณ  ์‹ถ๋‹ค๋ฉด ์œ„ ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค.

 

Tip. ํ…Œ๋งˆ๋ฅผ ๋ณ€๊ฒฝํ–ˆ์ง€๋งŒ ์ƒ‰์ƒ์ด ๋„ˆ๋ฌด ๋ง˜์— ์•ˆ๋“ ๋‹ค!

 

 

 

oh-my-zsh ์œ ์šฉํ•œ ํ”Œ๋Ÿฌ๊ทธ์ธ

๋ชจ๋“  ํ”Œ๋Ÿฌ๊ทธ์ธ๋“ค์€ ์„ค์น˜ ๋ฐ ์ถ”๊ฐ€ ํ›„์— source ~/.zshrc ๋กœ ๋ฐ”๋กœ ์ ์šฉ์„ ์‹œ์ผœ์ฃผ๊ฑฐ๋‚˜ ํ„ฐ๋ฏธ๋„์„ ๊ป๋‹ค ์ผœ์ค€๋‹ค!

 

Auto Suggestions ๐Ÿ‘“

ํ„ฐ๋ฏธ๋„์˜ ์ž…๋ ฅ history๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ์ถ”์ฒœ์„ ํ•ด์ค€๋‹ค.

๋‚œ clear๋ฅผ ๋ฌด์ง„์žฅ ๋งŽ์ด ์“ด๋‹ค. ์ €๋ ‡๊ฒŒ ๋–ณ์„ ๋•Œ ์˜ค๋ฅธ์ชฝ ํ‚ค๋ฅผ ๋ˆŒ๋ฅด๋ฉด ์™„์„ฑ๋œ๋‹ค.

 

 

1. ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ๋‹ค์šด ๋ฐ›๋Š”๋‹ค.

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

 

2. ~/.zshrc ํŒŒ์ผ์— plugin ๋ฆฌ์ŠคํŠธ์— zsh-autosuggestions๋ฅผ ์ถ”๊ฐ€์‹œ์ผœ์ค€๋‹ค.

vi ~/.zshrc

ํŒŒ์ผ์—์„œ plugins๋ฅผ ์ฐพ์•„์ฃผ๊ณ  ์ถ”๊ฐ€ํ•ด์ค€๋‹ค.

 

 

Syntax Highlighting ๐Ÿ‘“

zsh์—์„œ ํ•ด๋‹น command๊ฐ€ ์˜ฌ๋ฐ”๋ฅธ command ์ƒ‰์ƒ์„ ๋ณ€๊ฒฝํ•˜์—ฌ ์•Œ๋ ค์ค€๋‹ค!

 

 

1. ์„ค์น˜ํ•œ๋‹ค

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

 

2. ~/.zshrc ํŒŒ์ผ์— ์ถ”๊ฐ€ํ•œ๋‹ค.

~/.zshrc ํŒŒ์ผ์„ ์ง์ ‘์—ด์–ด์„œ ์ถ”๊ฐ€ํ•ด์ฃผ์–ด๋„ ๋˜์ง€๋งŒ ํŠน์ • ๋ถ€๋ถ„์„ ์ˆ˜์ •ํ•ด์•ผ ํ•˜๋Š”๊ฒŒ ์•„๋‹ˆ๋ผ ๊ทธ๋ƒฅ ํŒŒ์ผ ๋งจ ๋งˆ์ง€๋ง‰์— ์ถ”๊ฐ€๋งŒ ํ•˜๋ฉด ๋จ์œผ๋กœ ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜๊ฒ ๋‹ค.

echo "source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${HOME}/.zshrc
๋”๋ณด๊ธฐ

๋งŒ์•ฝ ๋‚˜๋Š” ๊ผญ! ๊ทธ๋ƒฅ ๋‚ด๊ฐ€ ํŒŒ์ผ ์—ด์–ด์„œ ์ˆ˜์ •ํ•˜๊ฒ ๋‹ค! ํ•œ๋‹ค๋ฉด vi ~/.zshrc๋กœ ํŒŒ์ผ์„ ์—ด์–ด์„œ ๋‹ค์Œ์„ ์ถ”๊ฐ€ํ•ด์ฃผ์ž.

source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

 

Autojump ๐Ÿ‘“

cd๋กœ ๋‚ด๊ฐ€ ํ•œ ๋ฒˆ ๋‹ค๋…€์˜จ ์ ์ด ์žˆ๋Š” ๋””๋ ‰ํ† ๋ฆฌ๋ผ๋ฉด ๋ชจ๋“  ๊ฒฝ๋กœ๋ฅผ ๋‹ค ์ ์ง€ ์•Š๊ณ ๋„ ์ด๋™์ด ๊ฐ€๋Šฅํ•˜๋‹ค!

์˜ˆ๋ฅผ ๋“ค์–ด ๋‚ด๊ฐ€ /Users/leni/๊ฐœ๋ฐœ์ž/Arduino_basic/touch ์— ํ•œ ๋ฒˆ์ด๋ผ๋„ ๋‹ค๋…€ ์˜จ ์ ์ด ์žˆ์„ ๋•Œ ํ™ˆ๋””๋ ‰ํ† ๋ฆฌ์—์„œ j touch๋งŒ ์ ์œผ๋ฉด ๋ฐ”๋กœ ์ด๋™์ด ๊ฐ€๋Šฅํ•˜๋‹ค!

autojump -s ๋˜๋Š” j -s

๋ฐฉ๋ฌธํ•œ ๋””๋ ‰ํ† ๋ฆฌ ๊ธฐ๋ก์„ ๋ณผ ์ˆ˜๋„ ์žˆ๋‹ค.

 

 

1. ์„ค์น˜ํ•œ๋‹ค.

 

Git์œผ๋กœ ํ•ด๋„ ๋˜๋Š”๋ฐ ๊ทธ๋Ÿฌ๋ ค๋ฉด python์ด ๊น”๋ ค ์žˆ์–ด์•ผ ํ•˜๋‹ˆ๊นŒ.. pass!

 

  • for mac 
brew install autojump

 

  • for Ubuntu
sudo apt-get update
sudo apt-get install autojump

 

 

2. ~/.zshrc ํŒŒ์ผ์— plugin ๋ฆฌ์ŠคํŠธ์— autojump๋ฅผ ์ถ”๊ฐ€์‹œ์ผœ์ค€๋‹ค.

vi ~/.zshrc

ํŒŒ์ผ์—์„œ plugins๋ฅผ ์ฐพ์•„์ฃผ๊ณ  ์ถ”๊ฐ€ํ•ด์ค€๋‹ค.


Thanks for ๐Ÿ™ˆ