Added Jun 25, 2017: Kary, 我衰記性差，好對唔住，唔應該開你玩笑，求你原諒🌹
I’m currently using an CUSTOMIZED Mac😁 I like the default Terminal.app shipped within macOS. I have changed the appearance a little bit, so it look nice to me. I also wanted to customize it even more, to enable it to sync command history between all open terminal sessions. I have tried
export PROMPT_COMMAND="history -a;history -n; history -w; history -c; history -r; $PROMPT_COMMAND"
and some combinations of them in my .bash_profile, but none of them worked for me properly, so I gave up the idea of syncing. Problems include wrong command history number, failing to remove duplicate command, etc.
Continue reading My .bash_profile on My Mac