If you want set this clock as default in your terminal,

Include this command in your .bashrc file


Ex:

[stud...@mercury ~] $ vim .bashrc

# User specific aliases and functions

#Terminal clock
export PS1="${PS1%\\\$*}"' \t \$ '

Save this using Press "Esc" and type ":wq!"

Now, you can see the Clock every time when, you open your terminal

[stud...@mercury ~] 12:43:34 $ echo "Default Clock Was Set"
Default Clock Was Set
[stud...@mercury ~] 12:44:15 $

-- 
l...@iitd - http://tinyurl.com/ycueutm

Reply via email to