summaryrefslogtreecommitdiffstats
path: root/prompt.bash
blob: 4ceaf22639581a4619d89b7b79f3470a0e0e19db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /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