nixos-configs/common/home/bash/config/bashrc
matt1432 3f288f3e8f
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: use $FLAKE instead of /home/mainUser...
2024-03-26 13:55:55 -04:00

27 lines
563 B
Bash

# Check git status of nix configs
fetchNix() {(
cd "$FLAKE" || exit 1
git fetch --all --quiet
GIT=$(git -c color.status=always status |
grep -v -e "On branch" \
-e "up to date" \
-e 'use "git' \
-e "nothing to commit")
CHECK=$(echo "$GIT" | sed '/^$/d')
if [ "$CHECK" != "" ]; then
echo "$GIT"
echo
fi
)}
# Check for internet
if wget -q --spider https://git.nelim.org; then
fetchNix
else
echo "Offline"
fi
# Pokemon Sprite
pokemon-colorscripts -r 1-5