User Tools

Site Tools


gitterminal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
gitterminal [2021/05/04 08:25] – создано chifekgitterminal [2023/09/14 06:06] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +<code>
 +
 +
 function parse_git_branch { function parse_git_branch {
               git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \[\1\]/'               git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \[\1\]/'
Line 17: Line 20:
                                                                               }                                                                               }
                                                                               prompt                                                                               prompt
 +                                                                              
 +                                                                              
 +                                                                              
 +</code>                                                               
 +                                                                              
 +Добавить все это в bashrc
gitterminal.1620116745.txt.gz · Last modified: 2023/09/14 06:06 (external edit)