mirror of
https://github.com/starship/starship.git
synced 2024-11-29 19:53:38 +01:00
Add fish_prompt
This commit is contained in:
parent
240fb6a02c
commit
4ce4899f81
24
README.md
24
README.md
@ -1,6 +1,28 @@
|
|||||||
<h3 align="center">Starship ✨🚀</h3>
|
<h3 align="center">Starship ✨🚀</h3>
|
||||||
<p align="center">The cross-platform prompt for astronauts.</p>
|
<p align="center">The cross-shell prompt for astronauts.</p>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
This is very much work in progress, so please don't try to use it just yet!
|
This is very much work in progress, so please don't try to use it just yet!
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
### Prerequisites
|
||||||
|
|
||||||
|
- Rust v1.33 or higher
|
||||||
|
- Fisher v3
|
||||||
|
|
||||||
|
### Getting Started
|
||||||
|
|
||||||
|
1. `cd` to the root of the **starship** repo
|
||||||
|
1. Install the **starship** binary:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cargo install --path .
|
||||||
|
```
|
||||||
|
|
||||||
|
1. Install the fish shell prompt with fisher:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
fisher $PWD
|
||||||
|
```
|
||||||
|
3
fish_prompt.fish
Normal file
3
fish_prompt.fish
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
function fish_prompt
|
||||||
|
starship $status
|
||||||
|
end
|
@ -13,7 +13,7 @@ use clap::{App, Arg};
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let args = App::new("Starship")
|
let args = App::new("Starship")
|
||||||
.about("The cross-platform prompt for astronauts. ✨🚀")
|
.about("The cross-shell prompt for astronauts. ✨🚀")
|
||||||
// pull the version number from Cargo.toml
|
// pull the version number from Cargo.toml
|
||||||
.version(crate_version!())
|
.version(crate_version!())
|
||||||
// pull the authors from Cargo.toml
|
// pull the authors from Cargo.toml
|
||||||
|
Loading…
Reference in New Issue
Block a user