User Tools

Site Tools


bashrc

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
bashrc [2021/04/19 16:49] chifekbashrc [2023/09/14 06:06] (current) – external edit 127.0.0.1
Line 1: Line 1:
-```+Редактируем ~/.bashrc 
 + 
 +Начало скрипта: 
 + 
 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\]/'
       }       }
-       
       function prompt {       function prompt {
               # OPTIONAL - if you want to use any of these other colors:               # OPTIONAL - if you want to use any of these other colors:
Line 18: Line 21:
                                                                               }                                                                               }
                                                                               prompt                                                                               prompt
-```+                                                                               
 +                                                             
 +конец скрипта!
bashrc.1618850962.txt.gz · Last modified: 2023/09/14 06:06 (external edit)