mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Fix elvish sudo integration and update documentation
This commit is contained in:

committed by
Mitchell Hashimoto

parent
b2a8211f9e
commit
3423cfdc71
@ -47,7 +47,19 @@ made available for use as modules by way of `use <filename>`.
|
||||
Ghostty launches Elvish, passing the environment with `XDG_DATA_DIRS`prepended
|
||||
with `$GHOSTTY_RESOURCES_DIR/src/shell-integration`. It contains
|
||||
`./elvish/lib/ghostty-integration.elv`. The user can then import it
|
||||
by `use ghostty-integration`, which will run the integration routines.
|
||||
by `use ghostty-integration` every time after shell startup or
|
||||
autostart integration in `$XDG_CONFIG_HOME/elvish/rc.elv`,
|
||||
which will run the integration routines.
|
||||
|
||||
If you decide to autostart `ghostty-integration` with `rc.elv`, you should
|
||||
detect whether the terminal is Ghostty or not. To do this, add this to the end
|
||||
of your `rc.elv` file:
|
||||
|
||||
```elvish
|
||||
if (eq $E:TERM "xterm-ghostty") {
|
||||
use ghostty-integration
|
||||
}
|
||||
```
|
||||
|
||||
The [Elvish](https://elv.sh) shell integration is supported by
|
||||
the community and is not officially supported by Ghostty. We distribute
|
||||
|
@ -92,7 +92,7 @@
|
||||
}
|
||||
|
||||
if (not $sudoedit) { set args = [ TERMINFO=$E:TERMINFO $@args ] }
|
||||
command sudo $@args
|
||||
(external sudo) $@args
|
||||
}
|
||||
|
||||
defer {
|
||||
|
Reference in New Issue
Block a user