Show time in terminal prompt

suggest change
timeNow(){
    echo "$(date +%r)"
}
PS1='[$(timeNow)] \u@\h:\w$ '

It will give you a prompt like this:

[05:34:37 PM] user@Host:/path$

Notes:

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents