mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
Merge pull request #1754 from jparise/bash-preexec
shell-integration: update bash-preexec.sh
This commit is contained in:
@ -48,7 +48,7 @@ if [[ -z "${BASH_VERSINFO-}" ]] || (( BASH_VERSINFO[0] < 3 || (BASH_VERSINFO[0]
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Avoid duplicate inclusion
|
# Avoid duplicate inclusion
|
||||||
if [[ -n "${bash_preexec_imported:-}" ]]; then
|
if [[ -n "${bash_preexec_imported:-}" || -n "${__bp_imported:-}" ]]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
bash_preexec_imported="defined"
|
bash_preexec_imported="defined"
|
||||||
@ -222,9 +222,9 @@ __bp_preexec_invoke_exec() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "${COMP_LINE:-}" ]]; then
|
if [[ -n "${COMP_POINT:-}" || -n "${READLINE_POINT:-}" ]]; then
|
||||||
# We're in the middle of a completer. This obviously can't be
|
# We're in the middle of a completer or a keybinding set up by "bind
|
||||||
# an interactively issued command.
|
# -x". This obviously can't be an interactively issued command.
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if [[ -z "${__bp_preexec_interactive_mode:-}" ]]; then
|
if [[ -z "${__bp_preexec_interactive_mode:-}" ]]; then
|
||||||
|
Reference in New Issue
Block a user