Compare commits
No commits in common. "458994d422b1ffd6d634280048e2d5cb7fbabb78" and "bfff2af0b2a5a021122d4bedd097c75abf3cfe94" have entirely different histories.
458994d422
...
bfff2af0b2
|
@ -32,9 +32,9 @@ git_branch_tag() {
|
||||||
|
|
||||||
# If we are in a git repository and there is a tag
|
# If we are in a git repository and there is a tag
|
||||||
if [[ -n $branch && -n $tag ]]; then
|
if [[ -n $branch && -n $tag ]]; then
|
||||||
echo -n " ($branch:$tag)"
|
echo -n " ($branch:$tag) "
|
||||||
elif [[ -n $branch ]]; then
|
elif [[ -n $branch ]]; then
|
||||||
echo -n " ($branch)"
|
echo -n " ($branch) "
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,7 +142,5 @@ alias n_ports='netstat -tulanp'
|
||||||
# export PS1=" \[\033[38;5;220m\]кπ \[\033[38;5;192m\]\w\[\e[0m\]\$(__git_ps1 ' \[\e[38;5;87m\]%s\[\e[0m\]')\$ "
|
# export PS1=" \[\033[38;5;220m\]кπ \[\033[38;5;192m\]\w\[\e[0m\]\$(__git_ps1 ' \[\e[38;5;87m\]%s\[\e[0m\]')\$ "
|
||||||
# export PS1=" \[\033[38;5;220m\]кπ \[\033[38;5;192m\]\w\[\e[0m\]\$(if [[ \$(git rev-parse --is-inside-work-tree 2>/dev/null) == 'true' ]]; then echo -n ' \[\e[38;5;87m\]'; git_branch_tag; echo -n '\[\e[0m\]'; fi)\$ "
|
# export PS1=" \[\033[38;5;220m\]кπ \[\033[38;5;192m\]\w\[\e[0m\]\$(if [[ \$(git rev-parse --is-inside-work-tree 2>/dev/null) == 'true' ]]; then echo -n ' \[\e[38;5;87m\]'; git_branch_tag; echo -n '\[\e[0m\]'; fi)\$ "
|
||||||
|
|
||||||
# PS1='\\$ \[\e[38;5;186m\]\u \[\e[38;5;152m\](\[\e[38;5;149m\]\W\[\e[38;5;152m\])\ \[\e[38;5;117;1m\]~ \[\e[0m\]'
|
PS1='\\$ \[\e[38;5;186m\]\u \[\e[38;5;152m\](\[\e[38;5;149m\]\W\[\e[38;5;152m\])\ \[\e[38;5;117;1m\]~ \[\e[0m\]'
|
||||||
|
PS1='\\$ \[\e[38;5;186m\]\u \[\e[38;5;152m\](\[\e[38;5;149m\]\W\[\e[38;5;152m\])\[\e[38;5;87m\]$(git_branch_tag)\[\e[38;5;117;1m\]~ \[\e[0m\]'
|
||||||
export PS1='\\$ \[\e[38;5;186m\]\u \[\e[38;5;152m\](\[\e[38;5;149m\]\W\[\e[38;5;152m\])\[\e[38;5;87m\]$(git_branch_tag)\[\e[38;5;117;1m\]~ \[\e[0m\]'
|
|
||||||
export PS2="\[\e[38;5;186m\]> "
|
|
Loading…
Reference in New Issue