User Tools

Site Tools


bashrc

Differences

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

Link to this comparison view

Next revision
Previous revision
bashrc [2021/04/19 16:48] – создано chifekbashrc [2023/09/14 06:06] (current) – external edit 127.0.0.1
Line 1: Line 1:
-<CODE>+Редактируем ~/.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
-</CODE>+                                                                               
 +                                                             
 +конец скрипта!
bashrc.1618850938.txt.gz · Last modified: 2023/09/14 06:06 (external edit)