Fix nushell date format in motd

main
trivernis 1 year ago
parent 5a29231ffa
commit d3f5cec0c4
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: DFFFCC2C7A02DB45

@ -1,4 +1,4 @@
let fact = (try { http get https://uselessfacts.jsph.pl/api/v2/facts/random | get text } catch { "I wasn't able to provide a fact." });
echo $"Hello (ansi purple_bold)($env.USER)(ansi reset),
it's the (ansi purple_bold)(date now | date format '%d.%m.%Y')(ansi reset) at (ansi purple_bold)(date now | date format '%H:%M:%S')(ansi reset)
it's the (ansi purple_bold)(date now | format date '%d.%m.%Y')(ansi reset) at (ansi purple_bold)(date now | format date '%H:%M:%S')(ansi reset)
Did you know: (ansi purple_bold)($fact)(ansi reset)"

Loading…
Cancel
Save