upd: add nixos

This commit is contained in:
PowerUser64 2023-01-21 02:57:30 -08:00
parent c71558caa6
commit 5cc5ca735f

View file

@ -26,7 +26,7 @@ g() { git -C "$REPO" "$@"; }
REPO_ABBR='echo ${REPO/"$HOME"/"~"}' REPO_ABBR='echo ${REPO/"$HOME"/"~"}'
# `git pull` everything mentioned in the REPOS_TO_UPDATE variable # `git pull` everything mentioned in the REPOS_TO_UPDATE variable
IFS=: read -ra REPOS_TO_UPDATE_ARR <<< "${REPOS_TO_UPDATE:-}:${DOCS_DIR:-}:$HOME/bin" IFS=: read -ra REPOS_TO_UPDATE_ARR <<< "${REPOS_TO_UPDATE:-}:${DOCS_DIR:-}:$HOME/bin:${NIXOS_DIR:-}"
for REPO in "${REPOS_TO_UPDATE_ARR[@]}"; do for REPO in "${REPOS_TO_UPDATE_ARR[@]}"; do
if [ -n "$REPO" ]; then if [ -n "$REPO" ]; then
if g rev-parse > /dev/null 2>&1; then if g rev-parse > /dev/null 2>&1; then