stumpwm.stumpwm-contrib/util/shell-command-history
2019-11-22 15:58:15 +01:00
..
package.lisp - added module to make shell history persistent. 2019-11-22 15:58:15 +01:00
README.org - added module to make shell history persistent. 2019-11-22 15:58:15 +01:00
shell-command-history.asd - added module to make shell history persistent. 2019-11-22 15:58:15 +01:00
shell-command-history.lisp - added module to make shell history persistent. 2019-11-22 15:58:15 +01:00

Problem

After quiting StumpWM, your shell command history is gone. This simple plugin saves the lisp stumpwm::*input-shell-history* to the contents of special variable *shell-command-history-file* (default to: ~/.stumpwm.d/shell-history) and loads it again when starting StumpWM.

Usage

Add this to your .stumpwmrc (your main configuration file):

Load contrib module:

  (load-module "shell-command-history")

You can customize the shell history file's path:

  (setf shell-command-history:*shell-command-history-file*
        "/home/cage/.cache/stumpwm/shell-command-history")

NOTE

This code is derived from command-history © Arjen Dijkstra, released under GPLv3