wting / autojump

A cd command that learns - easily navigate directories from the command line
Other
16.2k stars 706 forks source link

How do I fix PROMPT_COMMAND issue in bash? #643

Open atsalolikhin-spokeo opened 2 years ago

atsalolikhin-spokeo commented 2 years ago

Hi. I just installed autojump in bash on MacOS.

[~] [py-3.9.7] $ echo $PROMPT_COMMAND
__bp_precmd_invoke_cmd _lp_set_prompt __iterm2_prompt_command ; autojump_add_to_database __bp_interactive_mode
-bash: PROMPT_COMMAND: line 6: syntax error near unexpected token `;'
-bash: PROMPT_COMMAND: line 6: ` ; autojump_add_to_database'
[~] [py-3.9.7] $

How do I fix this? I take it it has something to do with PROMPT_COMMAND known issue listed in the README.

I don't set PROMPT_COMMAND but some of my plugins/utilities do.