docs: Update setup instructions on landing page (#184)

This commit is contained in:
Matan Kushner 2019-08-18 13:45:36 -04:00 committed by GitHub
parent 5af70b9699
commit f7a77edb35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 36 additions and 16 deletions

View File

@ -25,28 +25,48 @@ footer: ISC Licensed | Copyright © 2019-present Starship Contributors
1. Install the **starship** binary: 1. Install the **starship** binary:
```bash **[Download archives of precompiled binaries](https://github.com/starship/starship/releases)** if you don't use the platforms below.
cargo install starship
``` #### Homebrew
```sh
$ brew install starship
```
#### Rust (v1.33 or higher)
```sh
$ cargo install starship
```
1. Add the init script to your shell's config file: 1. Add the init script to your shell's config file:
#### Bash / Zsh #### Bash
Add the following to the end of `~/.bashrc` or `~/.zshrc`: Add the following to the end of `~/.bashrc`:
```bash ```sh
# ~/.bashrc or ~/.zshrc # ~/.bashrc
eval "$(starship init $0)"
```
#### Fish eval "$(starship init bash)"
```
Add the following to the end of `~/.config/fish/config.fish`: #### Fish
```sh Add the following to the end of `~/.config/fish/config.fish`:
# ~/.config/fish/config.fish
eval (starship init fish) ```sh
``` # ~/.config/fish/config.fish
eval (starship init fish)
```
#### Zsh
Add the following to the end of `~/.zshrc`:
```sh
# ~/.zshrc
eval "$(starship init zsh)"
```