Sujet : Re: [ksh] Show command number in shell prompt
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.shellDate : 24. Sep 2024, 23:41:21
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vcvf6i$3cb0q$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 24.09.2024 23:31, Lawrence D'Oliveiro wrote:
On Tue, 24 Sep 2024 15:23:56 +0200, Janis Papanagnou wrote:
[*] Note: Closing a shell window and re-opening it anew will work on the
previous, same history file.
I typically have over a dozen shell windows open at a time. They would all
happily clobber the same history file, which somewhat limits its use for
me.
Of course I have a more complex setup that uses an own history file
per "window"; I use for example a name like ".sh_history_pts_57"
(using 'HISTFILE').
I have yet more functions associated, e.g. a "CWD" or a window title
per "window", etc., to be able to keep and restore yet more context.
Janis