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

前端 未结 13 1092
无人共我
无人共我 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:57

    Just Install the oh-my-zsh plugins as described in this link.

    enter image description here

    It works best on macOS and Linux.

    Basic Installation

    Oh My Zsh is installed by running one of the following commands in your terminal. You can install this via the command-line with either curl or wget.

    via curl

    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    

    via wget

    sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
    
    0 讨论(0)
提交回复
热议问题