User Tools

Site Tools


gitterminal

Differences

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

Link to this comparison view

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:
-''function parse_git_branch {+<code> 
 + 
 + 
 +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 16: Line 19:
                                                                                       export PS1="\u@\h: $BLUE[\w]$LIGHT_RED\$(parse_git_branch) $DEFAULT\$ "                                                                                       export PS1="\u@\h: $BLUE[\w]$LIGHT_RED\$(parse_git_branch) $DEFAULT\$ "
                                                                               }                                                                               }
-                                                                              prompt''+                                                                              prompt 
 +                                                                               
 +                                                                               
 +                                                                               
 +</code>                                                                
 +                                                                               
 +Добавить все это в bashrc
gitterminal.1620116715.txt.gz · Last modified: 2023/09/14 06:06 (external edit)