Closed IgnusG closed 6 years ago
You can call _per-directory-history-set-global-history
after sourcing the script and it would change to global history.
Perfect! Thanks a lot ;)
For anyone stumbling upon this years later, this seems to be supported out of the box now with the variable HISTORY_START_WITH_GLOBAL
, e.g. export HISTORY_START_WITH_GLOBAL=true
Is there a way to start the shell with the global mode on and only switch to the directory specific one with the keyboard shortcut?
I usually use the global history but it would be helpful to sometimes only see what I executed in a certain directory, where this plugin would come in handy.
Thanks for the help!