1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-28 07:46:28 +00:00

fix(init): Change Elvish init to catch for 0.18 (#3769)

This commit is contained in:
Kevin Song 2022-03-25 05:57:38 -05:00 committed by GitHub
parent fdd295d96a
commit 538329d9b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -298,7 +298,7 @@ Add the following to the end of `~/.elvish/rc.elv`:
eval (starship init elvish) eval (starship init elvish)
``` ```
Note: Only Elvish v0.17+ is supported Note: Only Elvish v0.18+ is supported
</details> </details>

View File

@ -111,7 +111,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
#### Elvish #### Elvish
::: warning ::: warning
Only elvish v0.17 or higher is supported. Only elvish v0.18 or higher is supported.
::: :::
Add the following to the end of `~/.elvish/rc.elv`: Add the following to the end of `~/.elvish/rc.elv`:

View File

@ -11,7 +11,7 @@ fn starship-after-command-hook {|m|
} else { } else {
try { try {
set cmd-status-code = $error[reason][exit-status] set cmd-status-code = $error[reason][exit-status]
} except { } catch {
# The error is from the built-in commands and they have no status code. # The error is from the built-in commands and they have no status code.
set cmd-status-code = 1 set cmd-status-code = 1
} }