feat: Adds ripgrep to dev run, adds chsh to system script.

This commit is contained in:
2025-11-08 22:21:13 -05:00
parent d172a0071b
commit 5811d5602b
4 changed files with 50 additions and 51 deletions

31
system
View File

@@ -4,31 +4,32 @@
dry_run="0"
while [[ $# -gt 0 ]]; do
echo "ARG: \"$1\""
echo "ARG: \"$1\""
# Handle a --dry or --dry-run argument
if [[ "$1" =~ ^--dry ]]; then
dry_run="1"
fi
shift
# Handle a --dry or --dry-run argument
if [[ "$1" =~ ^--dry ]]; then
dry_run="1"
fi
shift
done
log() {
if [[ $dry_run == "1" ]]; then
echo "[DRY_RUN]: $1"
else
echo "$1"
fi
if [[ $dry_run == "1" ]]; then
echo "[DRY_RUN]: $1"
else
echo "$1"
fi
}
log_and_run() {
log "Running: \"$*\""
log "Running: \"$*\""
if [[ $dry_run == "0" ]]; then
eval "$1"
fi
if [[ $dry_run == "0" ]]; then
eval "$1"
fi
}
log_and_run "sudo chsh --shell $(which zsh)"
log_and_run "systemctl --user daemon-reload"
log_and_run "systemctl --user enable --now hyprpaper.service"
log_and_run "systemctl --user enable --now hypridle.service"