Skip to content

Instantly share code, notes, and snippets.

View Aeron's full-sized avatar
🚀

Eugene Glybin Aeron

🚀
View GitHub Profile
@Aeron
Aeron / enable-sudo-touch-id.sh
Created September 24, 2025 22:57
A simple shell script to enable the Touch ID authentication for sudo commands on macOS 14+.
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
# Checking whether the platform is right
[ "$(uname -s)" = "Darwin" ] || { echo "Not macOS (Darwin)" >&2; exit 1; }
# Checking whether the version is right
version=$(sw_vers -productVersion)
@Aeron
Aeron / switch-launchpad.sh
Created September 18, 2025 18:44
A simple shell script to switch back and forth between older Launchpad and newer Spotlight on macOS 26+.
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
# Checking whether the platform is right
[ "$(uname -s)" = "Darwin" ] || { echo "Not macOS (Darwin)" >&2; exit 1; }
# Checking whether the version is right
version=$(sw_vers -productVersion)