Shell config changes

This commit is contained in:
Jonathan Hodgson 2020-03-11 12:56:06 +00:00
parent 503603d705
commit 1ec39640b9
5 changed files with 58 additions and 4 deletions

View file

@ -116,7 +116,7 @@ prompt_git(){
local branch="$(git branch --show-current 2> /dev/null)"
local color="green"
local ret=""
if [ -n "branch" ]; then
if [ -n "$branch" ]; then
ret="$branch"
local repoTopLevel="$(command git rev-parse --show-toplevel 2> /dev/null)"
local untrackedFiles=$(command git ls-files --others --exclude-standard "${repoTopLevel}" 2> /dev/null)