shell-integration: bash must be explicitly enabled

For now, bash integration must be explicitly enabled (by setting
`shell-integration = bash`). Our automatic shell integration requires
bash version 4 or later, and systems like macOS continue to ship bash
version 3 by default. This approach avoids the cost of performing a
runtime version check.
This commit is contained in:
Jon Parise
2024-06-03 20:32:05 -04:00
parent 29b3f9d528
commit 7d7fa46b0c
3 changed files with 14 additions and 1 deletions

View File

@@ -18,7 +18,11 @@ our integration script (`bash/ghostty.bash`). This prevents Bash from loading
its normal startup files, which becomes our script's responsibility (along with
disabling POSIX mode).
Because automatic Bash shell integration requires Bash version 4 or later, it
must be explicitly enabled (`shell-integration = bash`).
Bash shell integration can also be sourced manually from `bash/ghostty.bash`.
This also works for older versions of Bash.
### Elvish