-
Notifications
You must be signed in to change notification settings - Fork 3
Disclaimer
Simon Fowler edited this page Jun 30, 2017
·
1 revision
- summary Please read this!
- this is not intended to become a security tool - it's meant only for enhancing the default shell history`
- default history settings are modified
-
HISTCONTROL
is zeroed out to disable theignoredups
andignorespace
options -
HISTTIMEFORMAT
is set to"%s "
to make it possible to calculate command duration
-
- your existing
PROMPT_COMMAND
variable will be renamed- if you already define a
PROMPT_COMMAND
function, it will be renamed toASH_PROMPT_COMMAND
and executed after the command has been logged
- if you already define a
-
PIPESTATUS
is renamedASH_PIPESTATUS
- your default history settings will be modified`
- extended history will be enabled via
setopt extended_history
- immediate history-file appending will be enabled by
setopt inc_append_history
- if
SAVEHIST
is less than 1, it will be bumped up to 1
- extended history will be enabled via
-
pipestatus
is renamedASH_PIPESTATUS