short date in bash PS1 prompt August 3, 2023 by Tarik Try including \D{%d.%m.%Y}. You can use any time format supported by strftime(3).