-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
I'd like to do the following in .bashrc:
log_on_success() {
if [ $? -eq 0 ]
then
log-recent -r $? -c "$(HISTTIMEFORMAT= history 1)" -p $$
fi
}
export PROMPT_COMMAND='log_on_success'
When I invoke the recent command, I get this error:
$ recent -h
PROMPT_COMMAND env variable is not set. Add the following line to .bashrc or .bash_profile
export PROMPT_COMMAND='log-recent -r $? -c "$(HISTTIMEFORMAT= history 1)" -p $$'
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request