added correct path order for homebrew paths
added sync history across terminals