์๋ํ์ง ์์ต๋๋ค.
ํญ์ ๋ค์ ๋ฉ์์ง๋ฅผ ๋ฐ์ต๋๋ค.
Please source the correct autojump file in your shell's
startup file. For more information, please reinstall autojump
and read the post installation instructions.
๋์์ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค.
"์ค์น ํ ์ง์นจ์ ์ฝ์ผ์ญ์์ค"๋ผ๋ ๋ถ๋ถ์ ์๋ ํ์ต๋๊น?
๋๋ ๊ฐ์ง๊ณ ์๋ค. macOS์ ๊ฒฝ์ฐ brew install
๋ผ๊ณ ๋ง ๋งํ๊ณ ๊ทธ๊ฒ ์ ๋ถ์
๋๋ค.
brew install์ ์ค์น ํ ์ง์นจ์ ๋ณด์ฌ์ค๋๋ค. ๊ฑฐ๊ธฐ์๋ ์ด์ ๊ฐ ์์ต๋๋ค.
๋ช ๋ น์ ์ฌ์ฉํ์ฌ ์ฃผ์ ์ฌํญ์ ๋ค์ ๋ณผ ์ ์์ต๋๋ค.
brew info autojump
๊ทธ๋ฆฌ๊ณ ๊ทธ๊ฒ์ ๋น์ ์๊ฒ ์ถ๋ ฅ์ ์ค ๊ฒ์ ๋๋ค
autojump: stable 22.5.1 (bottled), HEAD
Shell extension to jump to frequently used directories
https://github.com/wting/autojump
/usr/local/Cellar/autojump/22.5.1 (24 files, 253.9KB) *
Poured from bottle on 2017-11-28 at 13:37:16
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/autojump.rb
==> Caveats
Add the following line to your ~/.bash_profile or ~/.zshrc file (and remember
to source the file to update your current session):
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
If you use the Fish shell then add the following line to your ~/.config/fish/config.fish:
[ -f /usr/local/share/autojump/autojump.fish ]; and source /usr/local/share/autojump/autojump.fish
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
์ถ๊ฐํ๊ณ ํ์ผ์ ์์ฑํ ํ์๋ ์ฌ์ ํ ์๋ํ์ง ์์ต๋๋ค.
j <dirname>
ํ๊ณ ๋๋ ํ ๋ฆฌ๋ฅผ ๋ณ๊ฒฝํ๋ ๋์ ํ์ฌ ๋๋ ํ ๋ฆฌ์ ๋จ์ต๋๋ค.
๋ค์ ๋ฒ์ j <dirname>
๋ฅผ ํธ์ถํ ๋ autojump๊ฐ ๊ธฐ์ตํด ๋๊ธฐ๋ณด๋ค ๋จผ์ cd <dirname>
๋ฅผ ์
๋ ฅํด์ผ ํฉ๋๋ค.
์, ์ด๋ฐ, ๋ด๊ฐ ๋ชฉ์ ์ ์๋ชป ์ดํดํ์ผ๋ฏ๋ก ์๋ ์ ํ๋ ํ์ฌ ์์น์์ ๊น์ด ์ค์ฒฉ๋ ํ์ ๋๋ ํ ๋ฆฌ๋ฅผ ์ฐพ๋ ๊ฒ๋ณด๋ค ๋นจ๋ฆฌ ๋์๊ฐ ์ ์๋๋ก ํ์ฌ ์์น๋ฅผ ๊ธฐ์ตํ๋ ๊ฒ์ ๋ ๊ฐ๊น์ต๋๋ค.
์, README.md์์ ์ธ์ฉํ ๋๋ก
๋ช ๋ น์ค์์ ๊ฐ์ฅ ๋ง์ด ์ฌ์ฉํ๋ ๋๋ ํฐ๋ฆฌ์ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ฅผ ์ ์ง ๊ด๋ฆฌํ์ฌ ์๋ํฉ๋๋ค.
_๋๋ ํ ๋ฆฌ๋ ์ ํํ๊ธฐ ์ ์ ๋จผ์ ๋ฐฉ๋ฌธํด์ผ ํฉ๋๋ค._
๋๋ ๋ํ์ด ๋ฌธ์ ์ ์ง๋ฉด ํด์๋ค.
Homebrew๋ฅผ ํตํด ์ค์นํ ํ ์ด๊ฒ์ .bash_profile์ ์ถ๊ฐํ์ต๋๋ค.
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
๋๋ ๋ํ ๋ค์์ ์ถ๊ฐํ์ต๋๋ค.
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ;} history -a"
๋ช ๊ฐ์ ๋๋ ํ ๋ฆฌ๋ก cdํ๋ฉด j -s
ํญ๋ชฉ์ด ์์ต๋๋ค. ํ์ฌ ์ธ์
์์ .bash_profile ๋ผ์ธ์ ์๋์ผ๋ก ์คํํด์ผ ํฉ๋๋ค. ์ด๊ฒ์ ์ด๋ป๊ฒ ๋ ๋ด .bash_profile์ ๊ตฌ์ฑ ๋ฌธ์ ์
๋๊น?
@helenes-r7๊ณผ ๋์ผํ ๋ฌธ์ ๊ฐ ์์
Homebrew๋ฅผ ํตํด ์ค์นํ ํ ์ด๊ฒ์ .bash_profile์ ์ถ๊ฐํ์ต๋๋ค.
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
๋ช ๊ฐ์ ๋๋ ํ ๋ฆฌ๋ก cdํ๋ฉด j -s์ ํญ๋ชฉ์ด ์์ต๋๋ค.
์, ์ธ์
์ ๋ค์ ๋ก๋ํ๊ธฐ ์ํด source ~/.bash_profile
๋ฅผ ์ํํ์ต๋๋ค.
@helenes-r7 @l-gothberg ์ฌ๊ธฐ์์ ์ง๋ฌธ์ ๋ํด ์ฝ์ ์ ์์ต๋๋ค. https://apple.stackexchange.com/questions/12993/why-doesnt-bashrc-run-automatically
์ฐธ์ฌํด ์ฃผ์ @bendem ๊ณผ @aphe ์๊ฒ ๊ฐ์ฌ๋๋ฆฝ๋๋ค.
Autojump๋ ๋ชจ๋ ์ฌ์ฉ์๊ฐ ๋ค๋ฅธ ์๊ณผ ์ ์ฌ์ ์ผ๋ก ์ฌ์ฉ์ ์ ์๋ ์ค์ ์ ์ฌ์ฉํ๊ณ ์ผ๋ถ ํจํค์ง ๋ฐฐํฌํ์ ์ฌํ ์ค์น ๊ตฌ์ฑ(์: Debian)์ ํ์ฉํ์ง ์๊ธฐ ๋๋ฌธ์ ์ค์น ํ ์ค์ ์ด ํ์ํ๋ค๋ ์ ์์ ๊ณ ์ ํฉ๋๋ค.
#323์ ์ค์น ํ ๋จ๊ณ๋ฅผ ๊ฐ์ ํ ๊ณํ์ด๋ฏ๋ก ํผ๋๋ฐฑ์ ๊ทธ๊ณณ์ผ๋ก ๋ฆฌ๋๋ ์ ํ์ญ์์ค.
์ฝ์ด๋ณด๊ธฐ์ ๋ค์๊ณผ ๊ฐ์ ๋ด์ฉ์ด ์์ผ๋ฉด ์ข์ต๋๋ค.
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
์ค์น ํ ์ง์นจ์ ์ฝ์ง ์์์ต๋๋ค(์ฃ์กํฉ๋๋ค!). ๊ทธ๋ฅ ๊ธฐ๋ณธ์ ์ผ๋ก ์๋ํ ๊ฒ์ด๋ผ๊ณ ๊ฐ์ ํ์ต๋๋ค.
"์ค์น ํ ์ง์นจ ์ฝ๊ธฐ" ์์/๋์ ์ ์ถ๊ฐํ ์๋ ์์ต๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋ช ๋ น์ ์ฌ์ฉํ์ฌ ์ฃผ์ ์ฌํญ์ ๋ค์ ๋ณผ ์ ์์ต๋๋ค.
๊ทธ๋ฆฌ๊ณ ๊ทธ๊ฒ์ ๋น์ ์๊ฒ ์ถ๋ ฅ์ ์ค ๊ฒ์ ๋๋ค