In terminal, if i run echo $(date)
, it will give me the current date.
However, when i put the command in .bash_profile as an alias
alias dt="echo $(date)"
it will give me stale date. Namely, when i run dt
, it will always give me the same date.
Any workaround? Thanks!