nixos-configs/homeManagerModules/shell/config/bashrc

28 lines
563 B
Bash
Raw Permalink Normal View History

2023-12-10 15:31:39 -05:00
# Check git status of nix configs
2023-12-13 22:06:57 -05:00
fetchNix() {(
cd "$FLAKE" || exit 1
git fetch --all --quiet
GIT=$(git -c color.status=always status |
2023-12-10 15:45:56 -05:00
grep -v -e "On branch" \
-e "up to date" \
-e 'use "git' \
2023-12-10 16:14:07 -05:00
-e "nothing to commit")
2023-12-10 16:14:07 -05:00
CHECK=$(echo "$GIT" | sed '/^$/d')
if [ "$CHECK" != "" ]; then
echo "$GIT"
echo
fi
2023-12-13 22:06:57 -05:00
)}
# Check for internet
if wget -q --spider https://git.nelim.org; then
2023-12-13 22:06:57 -05:00
fetchNix
else
echo "Offline"
fi
2023-12-10 15:31:39 -05:00
2023-10-06 00:14:23 -04:00
# Pokemon Sprite
pokemon-colorscripts -r 1-5