Installing via curl error - starship: Cannot open: Permission denied · Issue #838 · starship/starship https://github.com/starship/starship/issues/838
Tarball URL: https://github.com/starship/starship/releases/latest/download/starship-x86_64-unknown-linux-gnu.tar.gz
上面就是WSL对应的starship安装包,根据这个下载链接,下载starship-x86_64-unknown-linux-gnu.tar.gz文件到本地,访问github下载慢可以参考github下载加速或者代下方案。
解压得到WSL可用的linux的二进制文件starship,在starship所在文件夹下
sudo install starship /bin
Bash
Add the following to the end of ~/.bashrc:
# ~/.bashrc
eval "$(starship init bash)"
可以用nano打开编辑
nano ~/.bashrc
原文:https://www.cnblogs.com/lingr7/p/13281839.html