mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Merge pull request #1878 from sethvargo/sethvargo/docs
Clarify shell integration installation
This commit is contained in:
13
README.md
13
README.md
@ -257,14 +257,19 @@ is launched within Ghostty and (2) to find the shell-integration.
|
|||||||
For example, for bash, you'd put this _at the top_ of your `~/.bashrc`:
|
For example, for bash, you'd put this _at the top_ of your `~/.bashrc`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Ghostty shell integration
|
# Ghostty shell integration for Bash. This must be at the top of your bashrc!
|
||||||
if [ -n "$GHOSTTY_RESOURCES_DIR" ]; then
|
if [ -n "${GHOSTTY_RESOURCES_DIR}" ]; then
|
||||||
builtin source "${GHOSTTY_RESOURCES_DIR}/shell-integration/bash/ghostty.bash"
|
builtin source "${GHOSTTY_RESOURCES_DIR}/shell-integration/bash/ghostty.bash"
|
||||||
fi
|
fi
|
||||||
```
|
```
|
||||||
|
|
||||||
**This must be at the top of your bashrc, not the bottom.** The same
|
Each shell integration's installation instructions are documented inline:
|
||||||
goes for any other shell.
|
|
||||||
|
| Shell | Integration |
|
||||||
|
| ------ | ---------------------------------------------------------------------------------------------- |
|
||||||
|
| `bash` | `${GHOSTTY_RESOURCES_DIR}/shell-integration/bash/ghostty.bash` |
|
||||||
|
| `fish` | `${GHOSTTY_RESOURCES_DIR}/shell-integration/fish/vendor_conf.d/ghostty-shell-integration.fish` |
|
||||||
|
| `zsh` | `${GHOSTTY_RESOURCES_DIR}/shell-integration/zsh/ghostty-integration` |
|
||||||
|
|
||||||
### Terminfo
|
### Terminfo
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user