mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-11 15:51:01 +00:00
fix: Fix issues with the init script for login shells (#147)
This commit is contained in:
parent
c5404e0495
commit
56f4797a25
82
README.md
82
README.md
@ -1,22 +1,46 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<br>
|
<br />
|
||||||
<img width="400" src="https://raw.githubusercontent.com/starship/starship/master/media/logo.png" alt="Starship – Cross-shell prompt">
|
<img
|
||||||
<p align="center">
|
width="400"
|
||||||
<a href="https://crates.io/crates/starship"><img src="https://badgen.net/crates/v/starship" alt="Crates.io version"></a>
|
src="https://raw.githubusercontent.com/starship/starship/master/media/logo.png"
|
||||||
<a href="https://dev.azure.com/starship-control/starship/_build"><img src="https://badgen.net/azure-pipelines/starship-control/starship/Starship%20Test%20Suite" alt="Azure Pipelines Build Status"></a>
|
alt="Starship – Cross-shell prompt"
|
||||||
<a href="#contributors"><img src="https://badgen.net/badge/all%20contributors/10/orange" alt="All Contributors"></a>
|
/>
|
||||||
<a href="https://discord.gg/8Jzqu3T"><img src="https://badgen.net/badge/chat/on%20discord/7289da" alt="Chat on Discord"></a>
|
|
||||||
</p>
|
</p>
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://crates.io/crates/starship">
|
||||||
|
<img src="https://badgen.net/crates/v/starship" alt="Crates.io version" />
|
||||||
|
</a>
|
||||||
|
<a href="https://dev.azure.com/starship-control/starship/_build">
|
||||||
|
<img
|
||||||
|
src="https://badgen.net/azure-pipelines/starship-control/starship/Starship%20Test%20Suite"
|
||||||
|
alt="Azure Pipelines Build Status"
|
||||||
|
/>
|
||||||
|
</a>
|
||||||
|
<a href="#contributors">
|
||||||
|
<img
|
||||||
|
src="https://badgen.net/badge/all%20contributors/10/orange"
|
||||||
|
alt="All Contributors"
|
||||||
|
/>
|
||||||
|
</a>
|
||||||
|
<a href="https://discord.gg/8Jzqu3T">
|
||||||
|
<img
|
||||||
|
src="https://badgen.net/badge/chat/on%20discord/7289da"
|
||||||
|
alt="Chat on Discord"
|
||||||
|
/>
|
||||||
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<h4 align="center">
|
<h4 align="center">
|
||||||
<br>
|
<br />
|
||||||
<a href="https://starship.rs">Website</a> ·
|
<a href="https://starship.rs">Website</a>
|
||||||
<a href="#-installation">Installation</a> ·
|
·
|
||||||
|
<a href="#-installation">Installation</a>
|
||||||
|
·
|
||||||
<a href="https://starship.rs/config/">Configuration</a>
|
<a href="https://starship.rs/config/">Configuration</a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<h1></h1>
|
<h1></h1>
|
||||||
|
|
||||||
|
|
||||||
Starship is the minimal, blazing fast, and extremely customizable prompt for any shell!<br>
|
Starship is the minimal, blazing fast, and extremely customizable prompt for any shell!<br>
|
||||||
The prompt shows information you need while you're working, while staying sleek and out of the way.
|
The prompt shows information you need while you're working, while staying sleek and out of the way.
|
||||||
|
|
||||||
@ -26,15 +50,15 @@ The prompt shows information you need while you're working, while staying sleek
|
|||||||
|
|
||||||
## 🍬 Features
|
## 🍬 Features
|
||||||
|
|
||||||
- Prompt character turns red if the last command exits with non-zero code.
|
- Prompt character turns red if the last command exits with non-zero code
|
||||||
- Current username if not the same as the logged-in user.
|
- Current username if not the same as the logged-in user
|
||||||
- Current Node.js version(`⬢`).
|
- Current Node.js version(`⬢`)
|
||||||
- Current Rust version (`🦀`).
|
- Current Rust version (`🦀`)
|
||||||
- Current Ruby version (`💎`).
|
- Current Ruby version (`💎`).
|
||||||
- Current Python version (`🐍`).
|
- Current Python version (`🐍`)
|
||||||
- Current Go version (`🐹`).
|
- Current Go version (`🐹`)
|
||||||
- Package version of package in current directory (`📦`).
|
- Package version of package in current directory (`📦`)
|
||||||
- Current battery level and status.
|
- Current battery level and status
|
||||||
- Current Git branch and rich repo status:
|
- Current Git branch and rich repo status:
|
||||||
- `=` — conflicting changes
|
- `=` — conflicting changes
|
||||||
- `⇡` — ahead of remote branch
|
- `⇡` — ahead of remote branch
|
||||||
@ -46,8 +70,8 @@ The prompt shows information you need while you're working, while staying sleek
|
|||||||
- `+` — added files
|
- `+` — added files
|
||||||
- `»` — renamed files
|
- `»` — renamed files
|
||||||
- `✘` — deleted files
|
- `✘` — deleted files
|
||||||
- Execution time of the last command if it exceeds the set threshold.
|
- Execution time of the last command if it exceeds the set threshold
|
||||||
- Indicator for jobs in the background (`✦`).
|
- Indicator for jobs in the background (`✦`)
|
||||||
|
|
||||||
## 🚀 Installation
|
## 🚀 Installation
|
||||||
|
|
||||||
@ -75,14 +99,14 @@ The prompt shows information you need while you're working, while staying sleek
|
|||||||
|
|
||||||
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`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# ~/.bashrc or ~/.zshrc
|
# ~/.bashrc
|
||||||
|
|
||||||
eval "$(starship init $0)"
|
eval "$(starship init bash)"
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Fish
|
#### Fish
|
||||||
@ -95,6 +119,16 @@ The prompt shows information you need while you're working, while staying sleek
|
|||||||
eval (starship init fish)
|
eval (starship init fish)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Zsh
|
||||||
|
|
||||||
|
Add the following to the end of `~/.zshrc`:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# ~/.zshrc
|
||||||
|
|
||||||
|
eval "$(starship init zsh)"
|
||||||
|
```
|
||||||
|
|
||||||
## 🔧 Configuration
|
## 🔧 Configuration
|
||||||
|
|
||||||
For details on how to configure Starship, check out our [documentation](https://starship.rs/config/).
|
For details on how to configure Starship, check out our [documentation](https://starship.rs/config/).
|
||||||
|
Loading…
Reference in New Issue
Block a user