diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-09-15 00:21:54 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-09-15 00:21:54 +0200 |
commit | 275d6de472ffe0e295f9478020e9d3a618b54fd1 (patch) | |
tree | 5ffeb186ab4df653923c02d2b9eb480aad66595f /.local/sbin/chtz | |
parent | 81175f89228a8dae06fa2d3f784080e4b47962a3 (diff) |
chtz: Rename from ‘stz’ to ‘chtz’
This keeps consistency with my other scripts like ‘chkb’, but also with
tools like ‘chmod’, ‘chsh’, etc.
Diffstat (limited to '.local/sbin/chtz')
-rwxr-xr-x | .local/sbin/chtz | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/sbin/chtz b/.local/sbin/chtz new file mode 100755 index 0000000..413bf40 --- /dev/null +++ b/.local/sbin/chtz @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +choice="`timedatectl list-timezones | grep './.' | osel`" \ + && sudo timedatectl set-timezone "$choice" \ + && notify-send -a "${0##*/}" -u normal 'Timezone changed' \ + "The system timezone was changed to ‘$choice’." |