summaryrefslogblamecommitdiffstats
path: root/prompt.bash
blob: 4ceaf22639581a4619d89b7b79f3470a0e0e19db (plain) (tree)
1
2
3
4
5
6
7
8
9

                    
                                  
                           
 
                
                                          
                           
                         
                      
                      
                          
                                     
                           
  
#! /usr/bin/env bash

dot="$(cd "$(dirname "$0")"; pwd)"
source "$dot/radar-base.sh"

if is_repo; then
  printf " \[\033[1;30m\]git:(\[\033[0m\]"
  bash_color_remote_commits
  printf "\[\033[0;37m\]"
  readable_branch_name
  printf "\[\033[0m\]"
  bash_color_local_commits
  printf "\[\033[1;30m\])\[\033[0m\]"
  bash_color_changes_status
fi