From 12d8e001ab01fc080dd62758468a4519f67a4dd7 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 29 Apr 2026 14:54:03 +0200 Subject: [PATCH] Simpler command structure --- ...y-sudo-passwordless-toggle => omarchy-sudo-passwordless} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename bin/{omarchy-sudo-passwordless-toggle => omarchy-sudo-passwordless} (93%) diff --git a/bin/omarchy-sudo-passwordless-toggle b/bin/omarchy-sudo-passwordless similarity index 93% rename from bin/omarchy-sudo-passwordless-toggle rename to bin/omarchy-sudo-passwordless index 530a7dea..1ac400bb 100755 --- a/bin/omarchy-sudo-passwordless-toggle +++ b/bin/omarchy-sudo-passwordless @@ -1,7 +1,7 @@ #!/bin/bash # Toggle passwordless sudo for the current user. -# Usage: omarchy-sudo-passwordless-toggle [MINUTES] +# Usage: omarchy-sudo-passwordless [MINUTES] # First run: enables passwordless sudo for 15 minutes (after confirmation). # Second run: disables it early. @@ -10,7 +10,7 @@ TIMER_NAME="omarchy-nopasswd-expire-${USER}" MINUTES=${1:-15} if [[ $1 && ! $1 =~ ^[0-9]+$ ]]; then - echo "Usage: omarchy-sudo-passwordless-toggle [MINUTES]" >&2 + echo "Usage: omarchy-sudo-passwordless [MINUTES]" >&2 exit 1 fi @@ -52,7 +52,7 @@ else echo "" echo "Passwordless sudo has been ENABLED. It will automatically disable in ${MINUTES} minutes." - echo "Note: if you restart before then, run omarchy-sudo-passwordless-toggle again to disable it." + echo "Note: if you restart before then, run omarchy-sudo-passwordless again to disable it." else echo "Aborted. No changes made." fi