mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
docs: Update elvish configuration description (#7054)
This commit is contained in:
@@ -307,13 +307,13 @@ load(io.popen('starship init cmd'):read("*a"))()
|
|||||||
<details>
|
<details>
|
||||||
<summary>Elvish</summary>
|
<summary>Elvish</summary>
|
||||||
|
|
||||||
Add the following to the end of `~/.elvish/rc.elv`:
|
Add the following to the end of `~/.config/elvish/rc.elv` (`%AppData%\elvish\rc.elv` on Windows):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
eval (starship init elvish)
|
eval (starship init elvish)
|
||||||
```
|
```
|
||||||
|
|
||||||
Note: Only Elvish v0.18+ is supported
|
Note: Only Elvish v0.18+ is supported. For elvish versions prior to v0.21.0 the config file might instead be `~/.elvish/rc.elv`
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -127,13 +127,14 @@ onMounted(() => {
|
|||||||
> [!WARNING]
|
> [!WARNING]
|
||||||
> Only elvish v0.18 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 `~/.config/elvish/rc.elv` (`%AppData%\elvish\rc.elv` on Windows):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# ~/.elvish/rc.elv
|
# ~/.elvish/rc.elv
|
||||||
|
|
||||||
eval (starship init elvish)
|
eval (starship init elvish)
|
||||||
```
|
```
|
||||||
|
For elvish versions prior to v0.21.0 the config file might instead be `~/.elvish/rc.elv`
|
||||||
|
|
||||||
#### Tcsh
|
#### Tcsh
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -371,7 +371,7 @@ print_install() {
|
|||||||
case ${s} in
|
case ${s} in
|
||||||
elvish )
|
elvish )
|
||||||
# shellcheck disable=SC2088
|
# shellcheck disable=SC2088
|
||||||
config_file="~/.elvish/rc.elv"
|
config_file="~/.config/elvish/rc.elv"
|
||||||
config_cmd="eval (starship init elvish)"
|
config_cmd="eval (starship init elvish)"
|
||||||
warning="${warning} Only elvish v0.17 or higher is supported."
|
warning="${warning} Only elvish v0.17 or higher is supported."
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user