diff --git a/git-template/gitconfig.template b/git-template/gitconfig.template index 5db8ae4..b88dc34 100644 --- a/git-template/gitconfig.template +++ b/git-template/gitconfig.template @@ -1,18 +1,17 @@ [color] ui = true - + [alias] state = "!f(){ \ deco_bold='\\x1b[1m'; \ deco_invert='\\x1b[7m'; \ - deco_end='\\x1b[00m'; \ git_status=$(git -c color.status=always status -sb); \ git_lfs_valid=$(git lfs status --porcelain); \ - git_lfs_status=$(git -c color.status=always lfs status); \ - divider='\n------- git-lfs status -------\n'; \ echo \"$git_status\"; \ if [[ -n \"$git_lfs_valid\" ]]; then \ - echo -e \"${deco_bold}${deco_invert}$divider${deco_end}\"; \ + git_lfs_status=$(git -c color.status=always lfs status); \ + divider='\n------- git-lfs status -------\\x1b[00m'; \ + echo -e \"${deco_bold}${deco_invert}$divider\n\"; \ echo \"$git_lfs_status\"; \ fi; \ }; \