Machine: _get_comp_words_by_ref ๋ˆ„๋ฝ

์— ๋งŒ๋“  2017๋…„ 01์›” 26์ผ  ยท  4์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: docker/machine

์•ˆ๋…•ํ•˜์„ธ์š” ๋„์ปค๋จธ์‹  ์ž‘๊ฐ€๋‹˜,
๋‚˜๋Š” bash ์™„์„ฑ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹œ๋„ํ•˜๊ณ  ์žˆ์—ˆ๋‹ค. ์ถ”๊ฐ€ ํ›„
docker-machine.bash
docker-machine-prompt.bash
~/.bashrc ๋ฐ "์†Œ์Šค"์— ๋‹ค์Œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค.

$ docker-machine -bash: _get_comp_words_by_ref: command not found
-bash: ((: i < : syntax error: operand expected (error token is " ")
-bash: _get_comp_words_by_ref: command not found
-bash: ((: i < : syntax error: operand expected (error token is " ")

์ด ์ €์žฅ์†Œ์—์„œ _get_comp_words_by_ref๋ฅผ ๊ฒ€์ƒ‰ํ–ˆ์ง€๋งŒ ์‚ฌ์šฉ๋ฒ•๋งŒ ์ฐพ์•˜์Šต๋‹ˆ๋‹ค. ์ œ๊ฑฐ๋˜์—ˆ์„ ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค. ํ˜น์‹œ ์•„์ง๋„ ๊ทธ ๊ธฐ๋Šฅ์ด ์žˆ๋‚˜์š”?

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

_get_comp_words_by_ref ๋Š” _bash-completion_ ํŒจํ‚ค์ง€์—์„œ ์ œ๊ณตํ•˜๋Š” ๊ธฐ๋Šฅ์ž…๋‹ˆ๋‹ค.

์˜ค๋ฅ˜ ๋ฉ”์‹œ์ง€์˜ ๊ฐ€๋Šฅํ•œ ์›์ธ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  • _bash-completion_์ด ์„ค์น˜๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.
  • _bash-completion_์€ ๋กœ๊ทธ์ธ ์Šคํฌ๋ฆฝํŠธ์—์„œ ํ˜ธ์ถœ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
  • _bash-completion_์ด ์ดˆ๊ธฐํ™”๋˜๊ธฐ ์ „์— ์™„๋ฃŒ ํŒŒ์ผ์„ ์†Œ์‹ฑํ•ฉ๋‹ˆ๋‹ค.

๋ชจ๋“  4 ๋Œ“๊ธ€

_get_comp_words_by_ref ๋Š” _bash-completion_ ํŒจํ‚ค์ง€์—์„œ ์ œ๊ณตํ•˜๋Š” ๊ธฐ๋Šฅ์ž…๋‹ˆ๋‹ค.

์˜ค๋ฅ˜ ๋ฉ”์‹œ์ง€์˜ ๊ฐ€๋Šฅํ•œ ์›์ธ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  • _bash-completion_์ด ์„ค์น˜๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.
  • _bash-completion_์€ ๋กœ๊ทธ์ธ ์Šคํฌ๋ฆฝํŠธ์—์„œ ํ˜ธ์ถœ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
  • _bash-completion_์ด ์ดˆ๊ธฐํ™”๋˜๊ธฐ ์ „์— ์™„๋ฃŒ ํŒŒ์ผ์„ ์†Œ์‹ฑํ•ฉ๋‹ˆ๋‹ค.

@albers๋‹˜ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ์„ค์น˜ ๋ฌธ์ œ์™€ ๊ด€๋ จ๋œ ๊ฒƒ ๊ฐ™์•„์„œ ๋ฌธ์ œ๋ฅผ ์ข…๋ฃŒํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

source /etc/profile ์•„์ง ์‚ฌ์šฉํ•˜์ง€ ์•Š์€ ๊ฒฝ์šฐ(์˜ˆ: bash๋ฅผ ์•ŒํŒŒ์ธ๊ณผ ํ•จ๊ป˜ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ).

source /etc/profile ์•„์ง ์‚ฌ์šฉํ•˜์ง€ ์•Š์€ ๊ฒฝ์šฐ(์˜ˆ: bash๋ฅผ ์•ŒํŒŒ์ธ๊ณผ ํ•จ๊ป˜ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ).

์ด๊ฒƒ์€ centos์™€ ํ•จ๊ป˜ bash์—์„œ๋„ ์ž‘๋™ํ–ˆ์Šต๋‹ˆ๋‹ค.
๊ฐ์‚ฌ ํ•ด์š”!

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰