docs: Update elvish configuration description (#7054)

This commit is contained in:
Tyler Quiring
2025-10-25 00:43:19 -07:00
committed by GitHub
parent b7dea479eb
commit 699a005c0d
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -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
View File
@@ -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
View File
@@ -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."
;; ;;