【发布时间】:2012-02-09 01:55:07
【问题描述】:
有没有一种简单的方法可以自动保存我在 shell 模式缓冲区中执行的每个命令?我正在从 Emacs 的 shell 缓冲区运行诸如 python 和 lua 之类的东西,除了常规的 bash 命令之外,我还想保存它们。
默认行为将历史记录保存在 .history 或 .bash_history 中,但不会将输入保存到子进程。例如,如果我执行以下操作
ls /export/hda3/tmp Python a=2+3 导入系统 sys.exit() ls /export/hda3/tmp以下内容被保存
#1328903075 ls /export/hda3/tmp #1328903081 Python #1328903087 ls /export/hda3/tmp【问题讨论】:
标签: emacs