์ฐ์ฃผ์ ์ ์ค์นํ๊ธฐ ์ํด ./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๋ก ์ธํด ๊ตฌ์ฑ ์ค๋ฅ๊ฐ ๋ฐ์ ํจ
๋ค, ๊ทธ๊ฒ์ ์ฐ๋ฆฌ ํ๋ซํผ ํ์ง ์คํฌ๋ฆฝํธ์ ์คํจ์ ๋๋ค.
์ถ๊ฐ ํ๋๊ทธ --platform pc-windows-msvc
์๊ฒ ์ต๋๊น? ๊ทธ๊ฒ์ ๋น์ ์ ์ด ๋ช
๋ น์ ๋ง๋ค ๊ฒ์
๋๋ค
./install.sh --bin-dir /c/Users/slapbot/starship/ --platform pc-windows-msvc`
์๋ ํ๋ซํผ ๊ฐ์ง๋ฅผ ์ฐํํด์ผํฉ๋๋ค. ๋์ค์ ์คํฌ๋ฆฝํธ + ์ฐ์ฃผ์ ์ด ์์๋๋ก ์๋ํ๋ฉด ํ๋ซํผ ๊ฐ์ง์ msys๋ฅผ ์ถ๊ฐํฉ๋๋ค.
์์ด! ์ด์ ์์๋๋ก ์๋ํฉ๋๋ค.
์ด ๋ฌธ์ ๋ฅผ ์ฐ์ฐํ ๋ฐ๊ฒฌ ํ ๋ค๋ฅธ ์ฌ๋๋ค์์ํ ์์ ์๋ฆผ ์ค ํ๋๋ ๊ฒฝ๋ก์ bin-dir
์ ์ถ๊ฐํ๋ ๊ฒ์
๋๋ค. ์์ฝํ์๋ฉด :
curl -fsSL https://starship.rs/install.sh > ./install.sh
mkdir ~/starship
./install.sh --bin-dir /c/Users/<username>/starship/ --platform pc-windows-msvc
# Starship configuration
export PATH=$PATH:"/c/Users/<username>/starship"
eval "$(starship init bash)"
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์์ ์คํํฉ๋๋ค.
๊ฐ์ฌํฉ๋๋ค ๐
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์์ด! ์ด์ ์์๋๋ก ์๋ํฉ๋๋ค.
์ด ๋ฌธ์ ๋ฅผ ์ฐ์ฐํ ๋ฐ๊ฒฌ ํ ๋ค๋ฅธ ์ฌ๋๋ค์์ํ ์์ ์๋ฆผ ์ค ํ๋๋ ๊ฒฝ๋ก์
bin-dir
์ ์ถ๊ฐํ๋ ๊ฒ์ ๋๋ค. ์์ฝํ์๋ฉด :curl -fsSL https://starship.rs/install.sh > ./install.sh
mkdir ~/starship
./install.sh --bin-dir /c/Users/<username>/starship/ --platform pc-windows-msvc
source ~/.bashrc
๊ทธ๋ฆฌ๊ณ ๋๋ผ์ด ํ๋กฌํํธ๊ฐ ์คํ๋์์ต๋๋ค! ๐
๋ชจ๋ ์ผํ๋ ์ฌ๋๋ค์๊ฒ ๊ฐ์ฌ๋๋ฆฝ๋๋ค. ํญ์ oh-my-zsh์ ๊ฐ์ ๊ฒ์ ์ํ์ง๋ง bash๋ฅผ ์ํ์ต๋๋ค (cygwin์ ์ค์นํ์ง ์๋ ํ Windows์์ zsh๋ฅผ ์ฌ์ฉํ ์ ์๊ธฐ ๋๋ฌธ์!)-ํ์ฌ ์ค์น๋ฅผ ์กฐ๊ธ ๋ ๋ง๋ค ์ ์๊ธฐ๋ฅผ ๋ฐ๋๋๋ค. ์ค์น ์คํฌ๋ฆฝํธ๋ฅผ ์กฐ์ ํ์ฌ ์ํํ๊ฒ. :)