pivotal / workstation-setup

Scripts to automatically set up a machine for development the "Tanzu Labs" way
https://github.com/pivotal/workstation-setup
MIT License
328 stars 247 forks source link

Command line not showing github branch details #274

Closed ranjithbhas closed 3 years ago

ranjithbhas commented 4 years ago

Hi, I am trying to setup pivotal workstation in my mac. Mac Os Catalina (10.15) Macbook Pro I have finished the set up by running the command ./setup.sh java node c golang docker designer Then I cloned a github repo and it's not showing up my branch details in the command line, instead it just showing

ranjithbhas@RANJITH-MACBOOK market-watch %

I am expecting something like

ranjithbhas | master | ->

Can someone please help me?

professor commented 4 years ago

I'm suspecting that the bash-it isn't working, the git bash-it plugin isn't working, or the bash_it_theme isn't set correctly.

Is git auto complete working? (That's a bash-it plugin, if it is working that means that bash-it is working.) To test this, cd into a git repo and see if branch names are auto completed. "git checkout ma...."

Check out your .bash_profile, it should load bash-it and select at theme. Something like: export BASH_IT="$HOME/.bash_it" export BASH_IT_THEME='bobby'

ranjithbhas commented 4 years ago

Hi @professor Thank you so much for your response. I will check this and update you as soon as possible.

oliverswitzer commented 4 years ago

I ran into this issue and realized that for some reason my iTerm2 was configured to use zsh instead of bash. I would check if that's the case for you by running echo $0. If it says zsh then you need to run chsh -s /bin/bash

I feel we should just add chsh -s /bin/bash to the scripts/common/configuration-bash.sh file since I believe iTerm2 now ships with zsh by default..

joemoore commented 3 years ago

Fixed