zsh-users
 help / color / mirror / code / Atom feed
* (no subject)
@ 2023-08-14 23:20 Budi
  2023-08-15  2:32 ` Bash history (was Re: [blank]) Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Budi @ 2023-08-14 23:20 UTC (permalink / raw)
  To: zsh-users

What is Zsh equivalent of bash history -a save the recent added ones
to a file specified or default one if not specified
as
fc -A File

write all command history to File, here as test file is on ~/.bashrc

tested

fc -A ~/.bash_history

at onec, the bash_history get to the fulllest, and proven by the line
number is overflow becoming messy large number


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Bash history (was Re: [blank])
  2023-08-14 23:20 Budi
@ 2023-08-15  2:32 ` Bart Schaefer
  2023-08-15 10:04   ` Budi
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2023-08-15  2:32 UTC (permalink / raw)
  To: Budi; +Cc: Zsh Users

On Mon, Aug 14, 2023 at 4:20 PM Budi <budikusasi@gmail.com> wrote:
>
> What is Zsh equivalent of bash history -a save the recent added ones

I suspect you're looking for
  fc -AI ...
or if you have SHARE_HISTORY enabled, you might want
  fc -ALI ...

> fc -A ~/.bash_history

This is not a particularly wise idea: bash and zsh do not store
history in mutually compatible formats.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bash history (was Re: [blank])
  2023-08-15  2:32 ` Bash history (was Re: [blank]) Bart Schaefer
@ 2023-08-15 10:04   ` Budi
  0 siblings, 0 replies; 3+ messages in thread
From: Budi @ 2023-08-15 10:04 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: Zsh Users

EXCELLENT !!!

THANKS MUCH

On 8/15/23, Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Mon, Aug 14, 2023 at 4:20 PM Budi <budikusasi@gmail.com> wrote:
>>
>> What is Zsh equivalent of bash history -a save the recent added ones
>
> I suspect you're looking for
>   fc -AI ...
> or if you have SHARE_HISTORY enabled, you might want
>   fc -ALI ...
>
>> fc -A ~/.bash_history
>
> This is not a particularly wise idea: bash and zsh do not store
> history in mutually compatible formats.
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-15 10:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-14 23:20 Budi
2023-08-15  2:32 ` Bash history (was Re: [blank]) Bart Schaefer
2023-08-15 10:04   ` Budi

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).