From 275d6de472ffe0e295f9478020e9d3a618b54fd1 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 15 Sep 2023 00:21:54 +0200 Subject: chtz: Rename from ‘stz’ to ‘chtz’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This keeps consistency with my other scripts like ‘chkb’, but also with tools like ‘chmod’, ‘chsh’, etc. --- .local/sbin/chtz | 8 ++++++++ .local/sbin/stz | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) create mode 100755 .local/sbin/chtz delete mode 100755 .local/sbin/stz (limited to '.local') 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’." diff --git a/.local/sbin/stz b/.local/sbin/stz deleted file mode 100755 index 413bf40..0000000 --- a/.local/sbin/stz +++ /dev/null @@ -1,8 +0,0 @@ -#!/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’." -- cgit v1.2.3