Update handling of git completion and bash prompt.