From 7cf578fa3b7e8fdf744981466b47e5068cfa2cdf Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 10 Dec 2023 15:31:39 -0500 Subject: [PATCH] feat(bash): add git status to bashrc --- common/home/bash/config/bashrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/home/bash/config/bashrc b/common/home/bash/config/bashrc index 8a9ad15e..e7bcb3c6 100644 --- a/common/home/bash/config/bashrc +++ b/common/home/bash/config/bashrc @@ -1,3 +1,13 @@ +# Check git status of nix configs +( + cd ~/.nix || exit 1 + git fetch --all > /dev/null + git -c color.status=always status | + grep -v -e branch \ + -e 'use "git' \ + -e "nothing to commit" +) + # Pokemon Sprite [ -x "$(command -v pokemon-colorscripts)" ] && [ "$POKE" == "true" ] &&