๐ Mac ๊ฐ๋ฐํ๊ฒฝ์ค์
๐ฅ Homebrew ์ค์น
Homebrew๋ ๋ช ๋ น์ด ํ ์ค๋ก ํ๋ก๊ทธ๋จ์ ์ค์นํ๊ฑฐ๋ ์ ๊ฑฐํ ์ ์๋ ํจํค์ง ๊ด๋ฆฌ์์ ๋๋ค.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
ํฐ๋ฏธ๋์ ์์ ๊ฐ์ ์ฝ๋๋ฅผ ์ ๋ ฅํ๋ฉด ์ค์น๊ฐ ๋ฉ๋๋ค.
๐ฅ iterm2 + Oh my Zsh ์ค์น
iterm2๋ ํฐ๋ฏธ๋ ๋์ฒด ํ๋ก๊ทธ๋จ์ผ๋ก, Oh My Zsh์ ํจ๊ป ์ฌ์ฉํ๋ฉด ๋ ๊ฐ๋ ฅํ ์ ํ๊ฒฝ์ ์ ๊ณตํฉ๋๋ค.
Zsh๋ ๋ณธ ์์ ํ์ฅํ์ผ๋ก ๋ ๊ฐ๋ ฅํ ๊ธฐ๋ฅ์ ์ฌ์ฉํ ์ ์๊ฒ ํด์ค๋๋ค.
๐ฅ ์์ฃผ ์ฌ์ฉํ๋ ๋ฆฌ๋ ์ค ๋ช ๋ น์ด
- ls : ํ์ฌ ์์น์ ํ์ผ ๋ชฉ๋ก ์กฐํ
- cd : ๋๋ ํฐ๋ฆฌ ์ด๋
- mkdir : ๋๋ ํฐ๋ฆฌ ์์ฑ
- cp : ํ์ผ ๋ณต์ฌ
- mv : ํ์ผ ์ด๋
- rm : ํ์ผ ์ญ์
๐ฅ ๊ทธ ์ธ ์ ์ฉํ ํ๋ก๊ทธ๋จ ์ค์น
Alfred, Spectacle, Appcleaner, cheatsheet, Runcat ๋ฑ์ ํ๋ก๊ทธ๋จ์ ์ค์นํ์์ต๋๋ค.
โ๏ธ vim ์๋ฌ ๋์
ํฐ๋ฏธ๋์์ vim์ ์ฌ์ฉํ๋ค๊ฐ esc + :wq ๋ช
๋ น์ด๊ฐ ์ ๋์ด ๊ณ ๋ฏผํ์์ต๋๋ค.
esc๋ฅผ ๋๋ฅด๊ณ :wq๋ฅผ ์
๋ ฅํ๋๋ฐ, :์ ์จ์ผํ๋๋ฐ ๊ทธ๊ฒ์ ๋ชจ๋ฅด๊ณ ๊ณ์ wq๋ง ๋๋ฅด๋ฉฐ
์ ์๋ผ! ์ ์๋ผ!
๋งํ๋ค๊ฐ ๊ฒฐ๊ตญ ๊ทธ๋ฅ ์ข
๋ฃ๋ฅผ ํ๊ณ ๋ค์ ํด๋ณด์..
ํ๋ฉฐ ๋ค์ ๋ค์ด๊ฐ๋๋ ์ด๊ฒ ์ ๊ฑธ..
E325: ATTENTION
Found a swap file by the name "~/.zshrc.swp"
owned by: user dated: ํ 12 26 01:57:14 2023
file name: ~user/.zshrc
modified: YES
user name: user host name: userui-MacBookAir.local
process ID: 7918
While opening file "/Users/user/.zshrc"
dated: ํ 12 26 02:05:10 2023
NEWER than swap file!
(1) Another program may be editing the same file. If this is the case,
be careful not to end up with two different instances of the same
file when making changes. Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /Users/user/.zshrc"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/Users/user/.zshrc.swp"
to avoid this message.
Swap file "~/.zshrc.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
์ ๊ฐ์ ์๋ฌ๊ฐ ๋จ๋๊ตฐ์.
๋นํฉํ์ง๋ง.. chat gpt์๋ ๋ฌผ์ด๋ณด๊ณ ๊ตฌ๊ธ๋ง๋ ํด๋ณธ ๊ฒฐ๊ณผ
.zshrc.swp ๋ ํ์ผ์ด ์์ด์ ๊ทธ๋ฐ๊ฑฐ๋ผ๊ณ ํฉ๋๋ค.
esc + :wq ๋ก ์ข ๋ฃ๋ฅผ ํด์ผํ๋๋ฐ,
esc + wq ๋ง ๋๋ฅด๋ค๊ฐ ์ ์๋ผ..ํ๋ฉฐ ๊ทธ๋ฅ ์ข ๋ฃํด๋ฒ๋ฆฐ ๊ฒฐ๊ณผ์์ต๋๋ค.
๐ ํด๊ฒฐ๋ฐฉ๋ฒ
์ ์์ฃผ ๊ฐ๋จํ์ต๋๋ค.
ํฐ๋ฏธ๋์ ์ด๊ณ , ls -a ์ ํ์ดํํ ๋ค,
.zshrc.swp ์ด ๋
์์ ์ ๊ฑฐํ๋ฉด ๋ฉ๋๋ค.
๋ฐ๋ก rm -f .zshrc.swp ๊ฐ๊ฒจ๋ฒ๋ฆฌ๊ธฐ.
๊ทธ๋ฌ๋๋ ๊ธฐ์ ์ฒ๋ผ ์ฌ๋ผ์ง๋ ์๋ฌ.
๋๋ฌผ์ ๋ฐ์ ์ธ ๋ฒ ๐๐๐ ์น๋ฉฐ ์๋ฌ๋ฅผ ๋ง๋ฌด๋ฆฌํ์์ต๋๋ค.
๐ ๋ง์น๋ฉฐ :
๊ธฐ๋ณธ์ ์ธ ํฐ๋ฏธ๋ ์ฌ์ฉ์ ์์ด์ ์ค์์ ์๋ฌ๋ฅผ ๊ฒฝํํ์์ง๋ง,
์ด๋ฅผ ํตํด ๋ ๋์ ๊ฐ๋ฐ์๋ก ์ฑ์ฅํ ์ ์๋ ๊ธฐํ๋ก ์ผ๊ธฐ๋ก ๊ฒฐ์ฌํ์ต๋๋ค.
ํฐ๋ฏธ๋ ์ฌ์ฉ ์ ๊ธฐ๋ณธ์ ์ธ ๋ช
๋ น์ด์ ์๋ฌ ๋์๋ฒ์ ๋์ฑ ๊ผผ๊ผผํ ํ์ตํด์ผ๊ฒ ๋ค๋ ๊ฒ์ ๊นจ๋ฌ์์ต๋๋ค.
โ๏ธ ์ค๋์ ํ ์ค
esc + :wq
":" ์ด๊ฑฐ๋ ์ฅ์์ด ์๋๋ผ ์ง์ ์น๋๊ฑฐ์๋ค.
'TIL' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
12/28(๋ชฉ) ๋ด์ผ๋ฐฐ์์บ ํ Java 5์ผ์ฐจ TIL - ์กฐ๊ฑด๋ฌธ (1) | 2023.12.29 |
---|---|
12/27(์) ๋ด์ผ๋ฐฐ์์บ ํ Java 4์ผ์ฐจ TIL - Flex, ๋ฐฐ์ด๋ฌธ (0) | 2023.12.29 |
12/22(๊ธ) ๋ด์ผ๋ฐฐ์์บ ํ Java 2์ผ์ฐจ TIL - ๊นํ๋ธ (1) | 2023.12.29 |
12/21(๋ชฉ) ๋ด์ผ๋ฐฐ์์บ ํ Java 1์ผ์ฐจ TIL - ๊นํ๋ธ (0) | 2023.12.29 |
12/19(ํ) TIL - array (0) | 2023.12.29 |