Starship: Windows (Git Bash)์— ์„ค์น˜ํ•  ์ˆ˜ ์—†์Œ-๊ตฌ์„ฑ์„ ์ฐพ์„ ์ˆ˜ ์—†์Œ ์˜ค๋ฅ˜

์— ๋งŒ๋“  2020๋…„ 06์›” 17์ผ  ยท  7์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: starship/starship

๋ฒ„๊ทธ ์‹ ๊ณ 

ํ˜„์žฌ ํ–‰๋™


์šฐ์ฃผ์„ ์„ ์„ค์น˜ํ•˜๊ธฐ ์œ„ํ•ด ./install.sh --bin-dir /c/Users/slapbot/starship/ ๋ช…๋ น์„ ์‹คํ–‰ํ•  ๋•Œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค (# 1310์—์„œ ์–ธ๊ธ‰ ํ•œ๋Œ€๋กœ / usr / local / bin์ด ์กด์žฌํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— --bin-dir์„ ์ œ๊ณตํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค).

์˜ค๋ฅ˜:

$ ./install.sh --bin-dir /c/Users/slapbot/starship/

  Configuration
> Bin directory: /c/Users/slapbot/starship/
> Platform:      msys_nt-10.0-19041
> Arch:          x86_64

> Tarball URL: https://github.com/starship/starship/releases/latest/download/starship-x86_64-msys_nt-10.0-19041.tar.gz
? Install Starship latest to /c/Users/slapbot/starship/? [y/N] y
! Bin directory /c/Users/slapbot/starship/ is not in your $PATH
> Installing Starship, please waitโ€ฆ

x Command failed (exit code 22): curl --silent --fail --location https://github.com/starship/starship/releases/latest/download/starship-x86_64-msys_nt-10.0-19041.tar.gz

> This is likely due to Starship not yet supporting your configuration.
> If you would like to see a build for your configuration,
> please create an issue requesting a build for x86_64-msys_nt-10.0-19041:
> https://github.com/starship/starship/issues/new/\n

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

์˜ˆ์ƒ๋˜๋Š” ๋™์ž‘


ํ˜„์žฌ ๋นŒ๋“œ๋ฅผ ์ฐพ์€ ํ›„ ์ƒˆ๋กœ ์„ค์น˜ ์„ฑ๊ณต ๋ฉ”์‹œ์ง€.

์ถ”๊ฐ€ ์ปจํ…์ŠคํŠธ / ์Šคํฌ๋ฆฐ ์ƒท

๊ฐ€๋Šฅํ•œ ํ•ด๊ฒฐ์ฑ…


: ๋‚˜๋Š” ๋‹จ์ˆœํžˆ์ด ๋นŒ๋“œ ๋ฐœ๊ฒฌํ•ด์•ผํ•œ๋‹ค๊ณ  ์ƒ๊ฐ https://github.com/starship/starship/releases/download/v0.42.0/starship-x86_64-pc-windows-msvc.zip์„ ๋Œ€์‹  https://github.com/ starship / starship / releases / latest / download / starship-x86_64-msys_nt-10.0-19041.tar.gz๋กœ ์ธํ•ด ๊ตฌ์„ฑ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒ ํ•จ

ํ™˜๊ฒฝ

  • Starship ๋ฒ„์ „ : ์ตœ์‹  ๋ฒ„์ „ (0.42.0)
  • ์‰˜ ์œ ํ˜• : bash
  • ์…ธ ๋ฒ„์ „ : Bash On Windows (GNU bash, ๋ฒ„์ „ 4.4.23 (1) -release (x86_64-pc-msys))
  • ํ„ฐ๋ฏธ๋„ ์—๋ฎฌ๋ ˆ์ดํ„ฐ : Windows ํ„ฐ๋ฏธ๋„
  • ์šด์˜ ์ฒด์ œ : [Windows 10]
๐Ÿ› bug ๐Ÿ’ป new platform

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

์˜ˆ์ด! ์ด์ œ ์˜ˆ์ƒ๋Œ€๋กœ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

์ด ๋ฌธ์ œ๋ฅผ ์šฐ์—ฐํžˆ ๋ฐœ๊ฒฌ ํ•œ ๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค์„์œ„ํ•œ ์ž‘์€ ์•Œ๋ฆผ ์ค‘ ํ•˜๋‚˜๋Š” ๊ฒฝ๋กœ์— bin-dir ์„ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์š”์•ฝํ•˜์ž๋ฉด :

  1. install.sh ๋‹ค์šด๋กœ๋“œ : curl -fsSL https://starship.rs/install.sh > ./install.sh
  2. ์„ค์น˜ํ•  ํด๋” ๋งŒ๋“ค๊ธฐ / ์„ ํƒ : mkdir ~/starship
  3. ์šฐ์ฃผ์„  ์„ค์น˜ : ./install.sh --bin-dir /c/Users/<username>/starship/ --platform pc-windows-msvc
  4. ๋งˆ์ง€๋ง‰์œผ๋กœ .bashrc ํŒŒ์ผ์— ์„ค์ •์„ ์ถ”๊ฐ€ํ•˜์‹ญ์‹œ์˜ค.
# Starship configuration
export PATH=$PATH:"/c/Users/<username>/starship"
eval "$(starship init bash)"
  1. ์‹คํ–‰ : source ~/.bashrc

๊ทธ๋ฆฌ๊ณ  ๋†€๋ผ์šด ํ”„๋กฌํ”„ํŠธ๊ฐ€ ์‹คํ–‰๋˜์—ˆ์Šต๋‹ˆ๋‹ค! ๐ŸŽ‰

๋ชจ๋“  ์ผํ•˜๋Š” ์‚ฌ๋žŒ๋“ค์—๊ฒŒ ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ํ•ญ์ƒ oh-my-zsh์™€ ๊ฐ™์€ ๊ฒƒ์„ ์›ํ–ˆ์ง€๋งŒ bash๋ฅผ ์›ํ–ˆ์Šต๋‹ˆ๋‹ค (cygwin์„ ์„ค์น˜ํ•˜์ง€ ์•Š๋Š” ํ•œ Windows์—์„œ zsh๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์—†๊ธฐ ๋•Œ๋ฌธ์—!)-ํ˜„์žฌ ์„ค์น˜๋ฅผ ์กฐ๊ธˆ ๋” ๋งŒ๋“ค ์ˆ˜ ์žˆ๊ธฐ๋ฅผ ๋ฐ”๋ž๋‹ˆ๋‹ค. ์„ค์น˜ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์กฐ์ •ํ•˜์—ฌ ์›ํ™œํ•˜๊ฒŒ. :)

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

๋„ค, ๊ทธ๊ฒƒ์€ ์šฐ๋ฆฌ ํ”Œ๋žซํผ ํƒ์ง€ ์Šคํฌ๋ฆฝํŠธ์˜ ์‹คํŒจ์ž…๋‹ˆ๋‹ค.

์ถ”๊ฐ€ ํ”Œ๋ž˜๊ทธ --platform pc-windows-msvc ์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ? ๊ทธ๊ฒƒ์€ ๋‹น์‹ ์˜ ์ด ๋ช…๋ น์„ ๋งŒ๋“ค ๊ฒƒ์ž…๋‹ˆ๋‹ค

./install.sh --bin-dir /c/Users/slapbot/starship/ --platform pc-windows-msvc`

์ž๋™ ํ”Œ๋žซํผ ๊ฐ์ง€๋ฅผ ์šฐํšŒํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค. ๋‚˜์ค‘์— ์Šคํฌ๋ฆฝํŠธ + ์šฐ์ฃผ์„ ์ด ์˜ˆ์ƒ๋Œ€๋กœ ์ž‘๋™ํ•˜๋ฉด ํ”Œ๋žซํผ ๊ฐ์ง€์— msys๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

์˜ˆ์ด! ์ด์ œ ์˜ˆ์ƒ๋Œ€๋กœ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

์ด ๋ฌธ์ œ๋ฅผ ์šฐ์—ฐํžˆ ๋ฐœ๊ฒฌ ํ•œ ๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค์„์œ„ํ•œ ์ž‘์€ ์•Œ๋ฆผ ์ค‘ ํ•˜๋‚˜๋Š” ๊ฒฝ๋กœ์— bin-dir ์„ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์š”์•ฝํ•˜์ž๋ฉด :

  1. install.sh ๋‹ค์šด๋กœ๋“œ : curl -fsSL https://starship.rs/install.sh > ./install.sh
  2. ์„ค์น˜ํ•  ํด๋” ๋งŒ๋“ค๊ธฐ / ์„ ํƒ : mkdir ~/starship
  3. ์šฐ์ฃผ์„  ์„ค์น˜ : ./install.sh --bin-dir /c/Users/<username>/starship/ --platform pc-windows-msvc
  4. ๋งˆ์ง€๋ง‰์œผ๋กœ .bashrc ํŒŒ์ผ์— ์„ค์ •์„ ์ถ”๊ฐ€ํ•˜์‹ญ์‹œ์˜ค.
# Starship configuration
export PATH=$PATH:"/c/Users/<username>/starship"
eval "$(starship init bash)"
  1. ์‹คํ–‰ : source ~/.bashrc

๊ทธ๋ฆฌ๊ณ  ๋†€๋ผ์šด ํ”„๋กฌํ”„ํŠธ๊ฐ€ ์‹คํ–‰๋˜์—ˆ์Šต๋‹ˆ๋‹ค! ๐ŸŽ‰

๋ชจ๋“  ์ผํ•˜๋Š” ์‚ฌ๋žŒ๋“ค์—๊ฒŒ ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ํ•ญ์ƒ oh-my-zsh์™€ ๊ฐ™์€ ๊ฒƒ์„ ์›ํ–ˆ์ง€๋งŒ bash๋ฅผ ์›ํ–ˆ์Šต๋‹ˆ๋‹ค (cygwin์„ ์„ค์น˜ํ•˜์ง€ ์•Š๋Š” ํ•œ Windows์—์„œ zsh๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์—†๊ธฐ ๋•Œ๋ฌธ์—!)-ํ˜„์žฌ ์„ค์น˜๋ฅผ ์กฐ๊ธˆ ๋” ๋งŒ๋“ค ์ˆ˜ ์žˆ๊ธฐ๋ฅผ ๋ฐ”๋ž๋‹ˆ๋‹ค. ์„ค์น˜ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์กฐ์ •ํ•˜์—ฌ ์›ํ™œํ•˜๊ฒŒ. :)

๋„ค, ๊ทธ๊ฒƒ์€ ์šฐ๋ฆฌ ํ”Œ๋žซํผ ํƒ์ง€ ์Šคํฌ๋ฆฝํŠธ์˜ ์‹คํŒจ์ž…๋‹ˆ๋‹ค.

@chipbuster https://github.com/starship/starship/pull/1315์—์„œ ์ฒ˜๋ฆฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

@SlapBot ๊ด‘๋ฒ”์œ„ํ•˜๊ณ  ์ •๊ตํ•œ ๋ณด๊ณ ์„œ์— ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค ๐Ÿ‘ git bash ๋˜๋Š” WSL์—์„œ ์ด๊ฒƒ์„ ์‹คํ–‰ํ•˜๊ณ  ์žˆ์—ˆ๋˜ ๊ฐ„๋‹จํ•œ ์งˆ๋ฌธ์ž…๋‹ˆ๊นŒ?

@vladimyr # 1315๋Š” ์ด๋ฏธ ์ถฉ๋ถ„ํžˆ ํฝ๋‹ˆ๋‹ค. ์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋ ค๋ฉด # 1315๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ•œ PR ์ดˆ์•ˆ์„ ์—ฐ ๋‹ค์Œ # 1315๊ฐ€ ๋ณ‘ํ•ฉ๋˜๋ฉด ์—ด ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ? PR ( "Windows ์‚ถ์˜ ์งˆ ์—…๊ทธ๋ ˆ์ด๋“œ"๋“ฑ)์—์„œ # 1310์„ ์ฒ˜๋ฆฌ ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

๋” ๋‚˜์€ ๐Ÿ‘

๊ด‘๋ฒ”์œ„ํ•˜๊ณ  ์ •๊ตํ•œ ๋ณด๊ณ ์„œ์— ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค ๐Ÿ‘ git bash ๋˜๋Š” WSL์—์„œ ์ด๊ฒƒ์„ ์‹คํ–‰ํ•˜๋Š” ๊ฐ„๋‹จํ•œ ์งˆ๋ฌธ์ž…๋‹ˆ๊นŒ?

@vladimyr- ๋ฌธ์ œ ์—†์Šต๋‹ˆ๋‹ค! Git Bash์—์„œ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

@vladimyr- ๋ฌธ์ œ ์—†์Šต๋‹ˆ๋‹ค! Git Bash์—์„œ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค ๐Ÿ‘

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