#!/usr/bin/env zsh ~/.setup/confgit.sh case "$OSTYPE" in darwin*) if [ "$(command -v gcloud)" ]; then gcloud components update; fi if [ -d "~/work" ]; then # Git config for work if [ "$(command -v fd)" ]; then fd -H -t d -E mod -E vendor '.git$' ~/work -x bash -c "cd {//}; git config user.email tdavis@hpe.com; git config http.cookiefile /Users/tydavis/.gitcookies-work;" ; fi fi if [ "$(command -v code)" ]; then code --list-extensions > ~/.setup/code-extensions fi ;; linux*) # == FEDORA == sudo dnf upgrade --assumeyes # Generate new RPM list dnf list installed|grep -v "Installed Packages"|awk '{ print $1 }' |sort|uniq > ~/.setup/rpmlist # == END FEDORA == # Rust rustup update; # Git config for work if [ "$(command -v fetchgit)" ]; then # Update all existing repos if [ "$(command -v fd)" ]; then fd -H -t d -E mod -E vendor '.git$' ~/work -x bash -c "cd {//}; git config user.email tdavis@hpe.com; git config http.cookiefile /home/tydavis/.gitcookies-work;" ; fi fi if [ "$(command -v gitrect)" ]; then gitrect -v; # Update our list of git repos gitrect -u; else if [ "$(command -v go)" ]; then go install -u github.com/tydavis/utilities/cmd/gitrect ; else echo "Go compiler not found" fi fi ;; esac echo "" # Newline date;