===== Pridani branche do bash prompt ===== http://stackoverflow.com/questions/15883416/adding-git-branch-on-the-bash-command-prompt * stahnout [[ https://github.com/git/git/blob/8976500cbbb13270398d3b3e07a17b8cc7bff43f/contrib/completion/git-prompt.sh | git-prompt.sh ]] do **~/.git-prompt.sh** * do **.bashrc** pridat # git prompt if ! type __git_ps1 &> /dev/null && [ -e /usr/share/git-core/contrib/completion/git-prompt.sh ]; then . /usr/share/git-core/contrib/completion/git-prompt.sh fi if type __git_ps1 &> /dev/null; then export GIT_PS1_SHOWDIRTYSTATE=1 export GIT_PS1_SHOWUNTRACKEDFILES=1 export GIT_PS1_SHOWCOLORHINTS=1 export PROMPT_DIRTRIM=2 export PROMPT_COMMAND='__git_ps1 "[\u@\h \W]" "\\\$ "' fi