gitterminal
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| gitterminal [2021/05/04 08:25] – удалено chifek | gitterminal [2023/09/14 06:06] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | < | ||
| + | |||
| + | function parse_git_branch { | ||
| + | git branch --no-color 2> /dev/null | sed -e '/ | ||
| + | } | ||
| + | |||
| + | function prompt { | ||
| + | # OPTIONAL - if you want to use any of these other colors: | ||
| + | local RED=" | ||
| + | local | ||
| + | local GREEN=" | ||
| + | local LIGHT_GREEN=" | ||
| + | local WHITE=" | ||
| + | local LIGHT_GRAY=" | ||
| + | local BLUE=" | ||
| + | # END OPTIONAL | ||
| + | local DEFAULT=" | ||
| + | export PS1=" | ||
| + | } | ||
| + | prompt | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | | ||
| + | Добавить все это в bashrc | ||
gitterminal.1620116734.txt.gz · Last modified: 2023/09/14 06:06 (external edit)