Skip to content

Commit

Permalink
Manually source ghostty shell integration to work around ble.sh issue a…
Browse files Browse the repository at this point in the history
  • Loading branch information
allpan3 committed Jan 12, 2025
1 parent a313486 commit 4e7a19b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ case $- in
*) return ;;
esac

# Ghostty shell integration for Bash. This should be at the top of your bashrc!
# Manually sourcing to fix ble.sh issue (https://github.com/akinomyoga/ble.sh/issues/543)
if [ -n "${GHOSTTY_RESOURCES_DIR}" ]; then
builtin source "${GHOSTTY_RESOURCES_DIR}/shell-integration/bash/ghostty.bash"
fi

# Set up bash line editor, must be at the top per documentation
test -f ${HOME}/.local/share/blesh/ble.sh && source ${HOME}/.local/share/blesh/ble.sh --attach=none

Expand Down
2 changes: 2 additions & 0 deletions .config/ghostty/config
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ theme = carbonfox
# window-decoration = false

## Functions
# source shell integratin script manually
shell-integration = none
copy-on-select = true
window-save-state = always
macos-option-as-alt = true
Expand Down

0 comments on commit 4e7a19b

Please sign in to comment.