mirror of
https://github.com/stumpwm/stumpwm-contrib.git
synced 2026-09-10 07:26:25 -04:00
| .. | ||
| package.lisp | ||
| README.org | ||
| shell-command-history.asd | ||
| shell-command-history.lisp | ||
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