How do I add a history of zsh from a program?

Asked 1 years ago, Updated 1 years ago, 89 views

I would also like to record the shell-command to be executed in emacs in the history of zsh.
To do this, I think I can do this if I can manipulate the history from the program, but I don't know how to do this.

Which shell has the ability to share history among multiple terminals? As shown in , zsh also shares history among multiple sessions, so I think there is an appropriate built-in command to edit it.

ASK:

  • Is there a way to add a history of zsh from the program?

zsh

2022-09-30 19:52

1 Answers

print-s.

%print-secho hello
% history-1
10368 echo hello


2022-09-30 19:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.