History recovery/sychronization:
Usage with other tools:
Recovering command history related to the specific directory is done with:
hm /path/of/interestor for the current working directory:
hm .All commands executed in the specified directory are combined together and placed at the beginning of the bash built-in history, so it is possible to walk through them using ↑ button.
To include commands executed in the nested folders add -R flag:
hm . -RTODO: It is possible to filter out commnads containing specified words:
hm . --exclude "cd ls git"To set a terminal session name and to recover the command history related to this name run the following:
hm -s "Session Name"To synchronize history with the database using the previously given name:
hm -sTo query the previously given name:
hm -iTODO: It is possible to filter out commnads containing specified words the same way as in per-directory history recovery.
Both path and session name can be combined together in a single recovery request:
hm /some/path -s "Session Name"History manager is completely compatible with hstr - a history suggest box which allows to easily view, navigate and search your command history.