diff --git a/shared/home/default.nix b/shared/home/default.nix index 4b787c5..f2e5b5b 100644 --- a/shared/home/default.nix +++ b/shared/home/default.nix @@ -240,7 +240,7 @@ in { }; initExtra = '' t() { git rev-parse --show-toplevel; } - d() { date --utc --date=@$(echo "$1" | sed -E 's/^[^0-9]*(.{10}).*/\1/') +"%F %T"; } + d() { date --utc --date=@$(echo "$1" | sed -E 's/^[^1-9]*([0-9]{10}).*/\1/') +"%F %T"; } source ${./gg.sh} ''; };