0

For some reason I get a bash history file in each and every folder where I issue any command. The file is called history rather than the normal .bash_history.

My .bash_profile has the following that affects history.

45 shopt -s histappend
46 PROMPT_COMMAND="$PROMPT_COMMAND history -a"

I'm using GNU bash, version 4.3.30(1)-release installed on Mac via Homebrew.

[edit] I just noticed that I only get the file when running in screen

asked Oct 15, 2014 at 21:09

1 Answer 1

1

It looks like you are missing a semicolon, try changing it to this PROMPT_COMMAND="history -a; $PROMPT_COMMAND"

answered Oct 15, 2014 at 21:55
0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.