mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 04:03:16 +02:00
Fix the default bash HISTFILE changing to .sh_history instead of .bash_history
Fixes #4765
This commit is contained in:
@@ -93,6 +93,10 @@ def setup_bash_env(env: Dict[str, str], argv: List[str]) -> None:
|
||||
env['KITTY_BASH_RCFILE'] = rcfile
|
||||
for i in sorted(remove_args, reverse=True):
|
||||
del argv[i]
|
||||
if 'HISTFILE' not in env and 'posix' not in inject:
|
||||
# In POSIX mode the default history file is ~/.sh_history instead of ~/.bash_history
|
||||
env['HISTFILE'] = os.path.expanduser('~/.bash_history')
|
||||
env['KITTY_BASH_UNEXPORT_HISTFILE'] = '1'
|
||||
argv.insert(1, '--posix')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user