home-brew๋ฅผ ํตํด ์ต์ ๋ฒ์ ์ ์ค์นํ์ผ๋ฉฐ ctags --version
๋ฅผ ์ํํ๋ฉด ๋ค์์ ์ป์ต๋๋ค.
โ ctags --version
ctags: Warning: Ignoring non-option in CTAGS variable
ctags: --version option may not follow a file name
์ด๋ก ์ธํด ๋ฒ์ฉ Ctags๋ฅผ ๊ฐ์งํ๊ธฐ ์ํด ์ด๊ฒ์ ์ฌ์ฉํ๋ ๋ค๋ฅธ ํ๋ก๊ทธ๋จ์ด ์คํจํฉ๋๋ค.
์ ์ถ๋ ฅ์ ๋ณด์ฌ ์ฃผ์๊ฒ ์ต๋๊น?
$ echo $CTAGS
ctags --version
๋ฅผ ์คํํ๋ ๋์ผํ ํ๊ฒฝ์์
โ echo $CTAGS
/usr/local/bin
๋๋ ์๋ ํ ์ ์์ต๋๊น?
$ unset CTAGS
$ ctags --version
bash ๋๋ zsh๋ฅผ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ.
๊ทธ๊ฒ์ด ์๋ํ์ต๋๋ค.
Universal Ctags 0.0.0(c3bd6bb), Copyright (C) 2015 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Jun 28 2018, 11:46:56
URL: https://ctags.io/
Optional compiled features: +wildcards, +regex, +iconv, +option-directory, +xpath, +case-insensitive-filenames
.zshrc
์ unset์ ์ถ๊ฐํด์ผ ํฉ๋๊น?
๋ด .zshrc์ unset์ ์ถ๊ฐํด์ผ ํฉ๋๊น?
๋ชจ๋ฅด๊ฒ ์ด์.
ctags.1 ๋งค๋ด์ผ ํ์ด์ง์์ CTGS์ ๋ํ ์ค๋ช
์ ์ฐธ์กฐํ์ญ์์ค.
๋๊ตฐ๊ฐ๊ฐ ์ด๋ค ์ด์ ๋ก ๊ฐ์ ๋ณ์๋ก ์ค์ ํฉ๋๋ค.
๋ณ์ ์ง์ฐ๊ธฐ์ ์ํฅ์ ๋์๊ฒ ๋ช
ํํ์ง ์์ต๋๋ค.
๋ด ์๋ชป์ด ๋ด .zshrc
์ export CTAGS=/usr/local/bin
๊ฐ ์๊ณ ์์ ์ฃผ์์ด ๋ฌ๋ฆฐ ์ฃผ์์ด ์์ด ctag์ ์์กฐ ๋ฒ์ ์ ๊ฐ์ ๋ก ์ฌ์ฉํ๋๋ก ํ ๊ฒ ๊ฐ์ต๋๋ค.
๋ด .zshrc
์์ ์ด๊ฒ์ ์ ๊ฑฐํ์ผ๋ฉฐ ๋ชจ๋ ์๋ํฉ๋๋ค.
์ด๊ฒ๊ณผ ๊ด๋ จ์ด ์๋ค๋ ๊ฒ์ ์๊ฒ ๋์๊ณ ์๊ฐ๊ณผ ๋์์ ๊ฐ์ฌ๋๋ฆฝ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋๋ ์๋ ํ ์ ์์ต๋๊น?
bash ๋๋ zsh๋ฅผ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ.