help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it necessary to use Mac's /etc/bashrc_Apple_Terminal


From: Lawrence Velázquez
Subject: Re: Is it necessary to use Mac's /etc/bashrc_Apple_Terminal
Date: Mon, 1 Feb 2021 11:38:00 -0500

> On Feb 1, 2021, at 9:53 AM, Dennis Williamson <dennistwilliamson@gmail.com> 
> wrote:
> 
> If you read the script you will see what it does and can then decide
> whether you need it or not. There's no harm in disabling them. You just
> don't get the added functionality. Try it both ways and see what you prefer.

There's no harm as far as using bash goes, but editing files in
/etc on macOS isn't generally the best way to get anything done,
if you can avoid it. You risk an OS update trashing your changes.

> In the script, the documented way to disable the save/restore is to create
> ~/.bash_sessions_disable.

This is the correct method. SHELL_SESSION_HISTORY doesn't enable/disable
saving; it only controls whether a single session history is saved
or independent histories for each session.

vq



reply via email to

[Prev in Thread] Current Thread [Next in Thread]