modify bash prompt

* detect current IP and show the last part
* add git prompt for indicating branch