How can I display the current branch and folder path in terminal?

前端 未结 13 1144
无人共我
无人共我 2020-12-04 07:09

I\'ve been watching some of the Team Treehouse videos and they have a very nice looking terminal when working with Git.

For example they have (something similar):

13条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-04 07:49

    To expand on the existing great answers, a very simple way to get a great looking terminal is to use the open source Dotfiles project.

    https://github.com/mathiasbynens/dotfiles


    enter image description here


    Installation is dead simple on OSX and Linux. Run the following command in Terminal.

    git clone https://github.com/mathiasbynens/dotfiles.git && cd dotfiles && source bootstrap.sh
    

    This is going to:

    1. Git clone the repo.
    2. cd into the folder.
    3. Run the installation bash script.

提交回复
热议问题