mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
bash: narrow the scope of GHOSTTY_BASH_ENV
GHOSTTY_BASH_ENV is only set in the '--posix' path. This change is a code organization improvement and doesn't change the script's behavior.
This commit is contained in:
@ -24,6 +24,7 @@ if [ -n "$GHOSTTY_BASH_INJECT" ]; then
|
||||
builtin source "$GHOSTTY_BASH_ENV"
|
||||
builtin export ENV="$GHOSTTY_BASH_ENV"
|
||||
fi
|
||||
builtin unset GHOSTTY_BASH_ENV
|
||||
else
|
||||
# Restore bash's default 'posix' behavior. Also reset 'inherit_errexit',
|
||||
# which doesn't happen as part of the 'posix' reset.
|
||||
@ -64,7 +65,7 @@ if [ -n "$GHOSTTY_BASH_INJECT" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
builtin unset GHOSTTY_BASH_ENV GHOSTTY_BASH_RCFILE
|
||||
builtin unset GHOSTTY_BASH_RCFILE
|
||||
builtin unset ghostty_bash_inject rcfile
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user