make timezone a variable
This commit is contained in:
parent
fd05f6cd24
commit
0ea41233c2
1 changed files with 3 additions and 2 deletions
5
proclaim
5
proclaim
|
@ -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}"
|
||||||
|
|
Loading…
Reference in a new issue