BacklinksBack to top Название ветки git в комндной строке В ~/.bashrc добавляем такое: 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\]$ " Discussion Real name: E-Mail: Address: Enter your comment. Wiki syntax is allowed: Please fill all the letters into the box to prove you're human. H C Q H V Please keep this field empty: Subscribe to comments devops/workplace_setup.txt Last modified: 2020/10/12 08:05by admin Log In
Discussion