Differences

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

Link to this comparison view

devops:workplace_setup [2020/10/12 08:05] (current)
admin created
Line 1: Line 1:
 +====== Название ветки git в комндной строке ====== 
 +В **~/.bashrc** добавляем такое: 
 +<code>parse_git_branch() { 
 +     git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' 
 +
 +export PS1="\u@\h \[\e[32m\]\w \[\e[91m\]\$(parse_git_branch)\[\e[00m\]$ "</code>
  • devops/workplace_setup.txt
  • Last modified: 2020/10/12 08:05
  • by admin