我发现了一些较早的帖子,但是似乎没有一种解决方案有效。我已将终端配置为在启动时打开窗口组。该组有2个窗口,每个窗口都有一些选项卡。当我退出终端并重新启动时,每个选项卡的历史记录都合并到一个历史记录中,并在所有选项卡之间共享。我正在尝试获取它,以便每个选项卡在重新启动后都保留其自己的历史记录。如果发生冲突,这是我的.bash_profile和.bashrc
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
if [ -f /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash ]; then
. /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash
fi
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh
green=$(tput setaf 2)
blue=$(tput setaf 4)
bold=$(tput bold)
red=$(tput setaf 1)
reset=$(tput sgr0)
PS1='\u:\w\[$blue\]$(__git_ps1)\[$reset\] \$ '
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWUPSTREAM="auto"
export PATH=/usr/local/mysql/bin:$PATH