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
|
||||
username=$(echo "$USER" | tr '[:lower:]' '[:upper:]')
|
||||
timezone="America/New_York"
|
||||
declare prompt
|
||||
|
||||
makeSlug () {
|
||||
# make time and date
|
||||
time=$(TZ=America/New_York date +%I:%M%p)
|
||||
date=$(TZ=America/New_York date +%m/%d)
|
||||
time=$(TZ=${timezone} date +%I:%M%p)
|
||||
date=$(TZ=${timezone} date +%m/%d)
|
||||
|
||||
# make name/time string
|
||||
prompt="${username}-${date}-${time}"
|
||||
|
|
Loading…
Reference in a new issue