[zsh] No need to sudo for ntp

This commit is contained in:
2026-02-18 11:11:53 -05:00
parent 4697027d87
commit 90000d76c1

View File

@ -26,7 +26,7 @@ eosup() {
# quick way to fix clock drift in UTM VM # quick way to fix clock drift in UTM VM
toggle_ntp() { toggle_ntp() {
sudo timedatectl set-ntp "$( timedatectl set-ntp "$(
timedatectl show -p NTP --value | grep -qi '^yes$' && echo false || echo true timedatectl show -p NTP --value | grep -qi '^yes$' && echo false || echo true
)" )"
} }