summaryrefslogtreecommitdiff
path: root/.local/sbin/chtz
diff options
context:
space:
mode:
Diffstat (limited to '.local/sbin/chtz')
-rwxr-xr-x.local/sbin/chtz12
1 files changed, 5 insertions, 7 deletions
diff --git a/.local/sbin/chtz b/.local/sbin/chtz
index 2a02e79..2033ab2 100755
--- a/.local/sbin/chtz
+++ b/.local/sbin/chtz
@@ -1,10 +1,8 @@
-#!/bin/sh
+#!/usr/local/bin/andy
-set -e
+set -e NOTIFY_LONG timezone
+set -e NOTIFY_SHORT chtz
-export NOTIFY_LONG=timezone
-export NOTIFY_SHORT="${0##*/}"
-
-choice="$(timedatectl list-timezones | grep './.' | osel)" \
-&& sudo timedatectl set-timezone "$choice" \
+set choice `timedatectl list-timezones | grep ./. | osel
+sudo timedatectl set-timezone $choice
&& notify 'Timezone Changed' "The system timezone was changed to ‘$choice’"