* feat(docs): move to vitepress * change up hero styles to match existing site * A bit more style tweaking * Replace stylus with plain CSS * improve unicode-range value for nerdfont --------- Co-authored-by: Matan Kushner <hello@matchai.dev>
layout, hero, features, footer, metaTitle, description
| layout | hero | features | footer | metaTitle | description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| home |
|
|
Cấp phép bởi ISC | Bản quyền © 2019-nay Starship Contributors | Starship: Cross-Shell Prompt | Starship là prompt nhỏ, cực nhanh, và khả năng tuỳ biến mạnh mẽ cho bất kì shell nào! Hiển thị thông tin bạn cần, trong khi vẫn giữ cho đẹp và nhỏ gọn. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell. |
Yêu cầu
- A Nerd Font installed and enabled in your terminal.
Cài đặt nhanh chóng
-
Cài đặt starship nhị phân:
Cài đặt phiên bản cuối cùng
Với Shell:
curl -sS https://starship.rs/install.sh | shĐể cập nhật chính Starship, hãy chạy lại đoạn script bên trên. Nó sẽ thay thế phiên bản hiện tại mà không hề thay đổi gì những cài đặt của Starship trước đó.
Cài đặt thông qua Trình quản lí gói
Với Homebrew:
brew install starshipWith Winget:
winget install starship -
Thêm đoạn mã khởi tạo vào tệp tin cấu hình shell của bạn:
Bash
Thêm đoạn sau vào cuối tệp tin
~/.bashrc:# ~/.bashrc eval "$(starship init bash)"Fish
Thêm đoạn sau vào cuối tệp tin
~/.config/fish/config.fish:# ~/.config/fish/config.fish starship init fish | sourceZsh
Thêm đoạn sau vào cuối tệp tin
~/.zshrc:# ~/.zshrc eval "$(starship init zsh)"Powershell
Thêm đoạn sau vào cuối tệp tin
Microsoft.PowerShell_profile.ps1. Bạn có thể kiểm tra vị trí tệp tin này bằng việc truy xuất biến$PROFILEtrong PowerShell. Thông thường, đường dẫn là~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1hoặc~/.config/powershell/Microsoft.PowerShell_profile.ps1trên -Nix.Invoke-Expression (&starship init powershell)Ion
Thêm đoạn sau vào cuối tệp tin
~/.config/ion/initrc:# ~/.config/ion/initrc eval $(starship init ion)Elvish
::: warning
Only elvish v0.18 or higher is supported.
:::
Thêm đoạn sau vào cuối tệp tin
~/.elvish/rc.elv:# ~/.elvish/rc.elv eval (starship init elvish)Tcsh
Thêm đoạn sau vào cuối tệp tin
~/.tcshrc:# ~/.tcshrc eval `starship init tcsh`Nushell
::: warning
This will change in the future. Only Nushell v0.78+ is supported.
:::
Thêm đoạn code dưới đây vào cuối file Nushell env của bạn (Bạn có thể tìm đường dẫn tới file Nushell env bằng cách chạy
$nu.env-pathtrong Nushell):mkdir ~/.cache/starship starship init nu | save -f ~/.cache/starship/init.nuThêm đoạn code sau vào cuối file cấu hình Nushell (bạn có thể tìm đường dẫn tới file cấu hình Nushell bằng cách chạy câu lệnh
$nu.config-path):use ~/.cache/starship/init.nuXonsh
Thêm dòng này vào cuối của file
~/.xonshrc:# ~/.xonshrc execx($(starship init xonsh))Cmd
Bạn cần phải dùng Clink (v1.2.30+) với Cmd. Add the following to a file
starship.luaand place this file in Clink scripts directory:-- starship.lua load(io.popen('starship init cmd'):read("*a"))()