docs/vi-VN/guide/README.md
<a href="https://discord.gg/starship" ></a> <a href="https://twitter.com/StarshipPrompt" ></a> <a href="https://stand-with-ukraine.pp.ua" ></a>
</p> <p align="center"> <a href="https://starship.rs">Website</a> · <a href="#🚀-installation">Cài đặt</a> · <a href="https://starship.rs/config/">Cấu hình</a> </p> <p align="center"> <a href="https://github.com/starship/starship/blob/master/README.md" ></a> <a href="https://github.com/starship/starship/blob/master/docs/de-DE/guide/README.md" ></a> <a href="https://github.com/starship/starship/blob/master/docs/es-ES/guide/README.md" ></a> <a href="https://github.com/starship/starship/blob/master/docs/fr-FR/guide/README.md" ></a> <a href="https://github.com/starship/starship/blob/master/docs/id-ID/guide/README.md" ></a> <a href="https://github.com/starship/starship/blob/master/docs/it-IT/guide/README.md" ></a> <a href="https://github.com/starship/starship/blob/master/docs/ja-JP/guide/README.md" ></a> <a href="https://github.com/starship/starship/blob/master/docs/pt-BR/guide/README.md" ></a> <a href="https://github.com/starship/starship/blob/master/docs/ru-RU/guide/README.md" ></a> <a href="https://github.com/starship/starship/blob/master/docs/uk-UA/guide/README.md" ></a> <a href="https://github.com/starship/starship/blob/master/docs/vi-VN/guide/README.md" ></a> <a href="https://github.com/starship/starship/blob/master/docs/zh-CN/guide/README.md" ></a> <a href="https://github.com/starship/starship/blob/master/docs/zh-TW/guide/README.md" ></a> </p> <h1></h1>Nhỏ gọn, cực nhanh, và khả năng tuỳ chỉnh vô hạn prompt cho bất kì shell nào!
<a name="🚀-installation"></a>
Chọn hệ điều hành của bạn trong danh sách bên dưới để xem hướng dẫn cài đặt:
<details> <summary>Android</summary>Cài đặt Starship bằng một package manager bất kì:
| Kho lưu trữ | Hướng dẫn |
|---|---|
| Termux | pkg install starship |
Cài đặt Starship bằng một package manager bất kì:
| Bản phân phối | Kho lưu trữ | Hướng dẫn |
|---|---|---|
| Bất kỳ | crates.io | cargo install starship --locked |
| FreeBSD | FreshPorts | pkg install starship |
| NetBSD | pkgsrc | pkgin install starship |
Cài đặt phiên bản mới nhất cho hệ điều hành của bạn:
curl -sS https://starship.rs/install.sh | sh
Hoặc là, cài đặt Starship bằng một package manager bất kì:
| Bản phân phối | Kho lưu trữ | Hướng dẫn |
|---|---|---|
| Bất kỳ | crates.io | cargo install starship --locked |
| Bất kỳ | conda-forge | conda install -c conda-forge starship |
| Bất kỳ | Linuxbrew | brew install starship |
| Alpine Linux 3.13+ | Alpine Linux Packages | apk add starship |
| Arch Linux | Arch Linux Extra | pacman -S starship |
| CentOS 7+ | Copr | dnf copr enable atim/starship |
dnf install starship | ||
| Debian 13+ | Debian Main | apt install starship |
| Fedora 40+ | Copr | dnf copr enable atim/starship |
dnf install starship | ||
| Gentoo | Gentoo Packages | emerge app-shells/starship |
| Manjaro | pacman -S starship | |
| NixOS | nixpkgs | nix-env -iA nixpkgs.starship |
| openSUSE | OSS | zypper in starship |
| Ubuntu 25.04+ | Ubuntu Universe | apt install starship |
| Void Linux | Void Linux Packages | xbps-install -S starship |
Cài đặt phiên bản mới nhất cho hệ điều hành của bạn:
curl -sS https://starship.rs/install.sh | sh
Hoặc là, cài đặt Starship bằng một package manager bất kì:
| Kho lưu trữ | Hướng dẫn |
|---|---|
| crates.io | cargo install starship --locked |
| conda-forge | conda install -c conda-forge starship |
| Homebrew | brew install starship |
| MacPorts | port install starship |
Cài đặt phiên bản mới nhất cho hệ điều hành của bạn với MSI-installers từ phần release.
Cài đặt Starship bằng một package manager bất kì:
| Kho lưu trữ | Hướng dẫn |
|---|---|
| crates.io | cargo install starship --locked |
| Chocolatey | choco install starship |
| conda-forge | conda install -c conda-forge starship |
| Scoop | scoop install starship |
| winget | winget install --id Starship.Starship |
Cấu hình shell của bạn để chạy starship. Bạn có thể chọn từ danh sách bên dưới:
<details> <summary>Bash</summary>Thêm đoạn sau vào cuối tệp tin ~/.bashrc:
eval "$(starship init bash)"
Bạn cần phải dùng Clink (v1.2.30+) với Cmd. Tạo một file như đường dẫn %LocalAppData%/clink/starship.lua với nội dung như sau:
load(io.popen('starship init cmd'):read("*a"))()
Thêm các dòng sau vào cuối tệp ~/.config/elvish/rc.elv (%AppData%\elvish\rc.elv trên Windows):
eval (starship init elvish)
Note: Only Elvish v0.18+ is supported. Đối với các phiên bản elvish trước v0.21.0 tệp cấu hình có thể là ~/.elvish/rc.elv
Thêm đoạn sau vào cuối tệp tin ~/.config/fish/config.fish:
starship init fish | source
Thêm đoạn sau vào cuối tệp tin ~/.config/ion/initrc:
eval $(starship init ion)
Thêm những dòng sau vào cuối tệp cấu hình Nushell (tìm bằng cách chạy $nu.config-path trong Nushell):
mkdir ($nu.data-dir | path join "vendor/autoload")
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
Lưu ý: Chỉ hỗ trợ Nushell v0.96+
</details> <details> <summary>PowerShell</summary>Thêm đoạn code sau vào cuối file cấu hình PowerShell (bạn có thể tìm đường dẫn tới file cấu hình PowerShell bằng cách chạy câu lệnh $PROFILE):
Invoke-Expression (&starship init powershell)
Thêm đoạn sau vào cuối tệp tin ~/.tcshrc:
eval `starship init tcsh`
Thêm dòng này vào cuối của file ~/.xonshrc:
execx($(starship init xonsh))
Thêm đoạn sau vào cuối tệp tin ~/.zshrc:
eval "$(starship init zsh)"
Khởi tạo một shell mới, và bạn sẽ thấy một chiếc shell mới tinh, đẹp lung linh. Nếu bạn hài lòng với cấu hình mặc định thì giờ là lúc mà bạn nên tận hưởng chiếc shell mới của mình!
Nếu bạn muốn tùy chỉnh Starship nhiều hơn nữa:
Cấu hình – học cách cấu hình Starship để tùy chỉnh prompt theo ý bạn
Cấu hình mẫu – lấy cảm hứng từ cấu hình của những người khác
Chúng tôi luôn luôn tìm kiếm những cộng tác viên ở tất cả các các mức độ về kĩ năng! If you're looking to ease your way into the project, try out a good first issue.
Nếu bạn thành thạo một ngôn ngữ không phải Tiếng Anh, chúng tôi đánh giá cao mọi sự giúp đỡ của bạn trong việc dịch tài liệu của chúng tôi và cập nhật các ngôn ngữ khác. Nếu bạn muốn giúp đỡ, những bản dịch có thể được đóng góp trên Starship Crowdin.
Nếu bạn thích thú trong việc giúp đỡ đóng góp cho starship, xin hãy xem Hướng dẫn đóng góp của chúng tôi. Ngoài ra, vui lòng truy cập vào máy chủ Discord và nói xin chào. 👋
Xin hãy xem qua những công việc này trước đây, những thứ đã giúp truyền cảm hứng để tạo ra starship. 🙏
denysdovhan/spaceship-prompt – A ZSH prompt for astronauts.
denysdovhan/robbyrussell-node – Cross-shell robbyrussell theme written in JavaScript.
reujab/silver – A cross-shell customizable powerline-like prompt with icons.
Hỗ trợ project này bằng việc trở thành nhà tài trợ. Tên hoặc logo của nhà tài trợ sẽ được hiển thị với một liên kết dẫn tới trang web của họ.
Free code signing provided by SignPath.io, certificate by SignPath Foundation.
Code Signing Roles:
Chương trình này sẽ không chuyển bất kỳ thông tin nào sang các hệ thống mạng khác trừ khi có yêu cầu cụ thể của người dùng hoặc người cài đặt hoặc vận hành chương trình.
<p align="center"> </p>Bản quyền © 2019-nay, Starship Contributors. Dự án này được ISC cấp phép.