make timezone a variable

This commit is contained in:
maren 2024-02-09 15:58:15 -05:00
parent fd05f6cd24
commit 0ea41233c2

View file

@ -2,12 +2,13 @@
# make username uppercase # make username uppercase
username=$(echo "$USER" | tr '[:lower:]' '[:upper:]') username=$(echo "$USER" | tr '[:lower:]' '[:upper:]')
timezone="America/New_York"
declare prompt declare prompt
makeSlug () { makeSlug () {
# make time and date # make time and date
time=$(TZ=America/New_York date +%I:%M%p) time=$(TZ=${timezone} date +%I:%M%p)
date=$(TZ=America/New_York date +%m/%d) date=$(TZ=${timezone} date +%m/%d)
# make name/time string # make name/time string
prompt="${username}-${date}-${time}" prompt="${username}-${date}-${time}"