dotfiles-laptop/config/hypr/scripts/date.sh

10 lines
186 B
Bash

#!/bin/sh
DaySuffix() {
case `date +%e` in
1|21|31) echo "st";;
2|22) echo "nd";;
3|23) echo "rd";;
*) echo "th";;
esac
}
date "+%A, %e`DaySuffix` %B %Y"