Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- source ~/.git-completion.sh
- git_status() {
- if git status | grep 'Changes to be committed' > /dev/null
- then
- echo "[☠]"
- fi
- }
- git_prompt_info() {
- branch_prompt=$(__git_ps1)
- if [ -n "$branch_prompt" ]; then
- status_icon=$(git_status)
- echo $branch_prompt$status_icon
- fi
- }
- export PS1="\u@\h \W\$(git_prompt_info)$ "
Add Comment
Please, Sign In to add comment