fix: catch up to current state

This commit is contained in:
Jason Rayne
2025-06-17 22:07:06 -07:00
parent f206e76841
commit 30683979bc

View File

@ -15,10 +15,8 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# We need to be in interactive mode and we need to have the Ghostty # We need to be in interactive mode to proceed.
# resources dir set which also tells us we're running in Ghostty.
if [[ "$-" != *i* ]] ; then builtin return; fi if [[ "$-" != *i* ]] ; then builtin return; fi
if [ -z "$GHOSTTY_RESOURCES_DIR" ]; then builtin return; fi
# When automatic shell integration is active, we were started in POSIX # When automatic shell integration is active, we were started in POSIX
# mode and need to manually recreate the bash startup sequence. # mode and need to manually recreate the bash startup sequence.
@ -346,7 +344,7 @@ if [[ -n "$GHOSTTY_SSH_INTEGRATION" ]]; then
fi fi
# Import bash-preexec, safe to do multiple times # Import bash-preexec, safe to do multiple times
builtin source "$GHOSTTY_RESOURCES_DIR/shell-integration/bash/bash-preexec.sh" builtin source "$(dirname -- "${BASH_SOURCE[0]}")/bash-preexec.sh"
# This is set to 1 when we're executing a command so that we don't # This is set to 1 when we're executing a command so that we don't
# send prompt marks multiple times. # send prompt marks multiple times.