summaryrefslogtreecommitdiffstats
path: root/prompt.bash
blob: e39a1b1098199c0c8d992a0155b4fe6235af32a8 (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/git-base.sh"

if is_repo; then
  printf " \033[1;30mgit:(\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