traewelling,fish: fix some formatting

This commit is contained in:
Daniella / Tove 2024-10-29 00:04:48 +01:00
parent 1a771f5af1
commit ef8f869c70
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
2 changed files with 1 additions and 1 deletions

View file

@ -104,7 +104,6 @@ in
# check träwelling # check träwelling
traewelling traewelling
set_color normal set_color normal
echo
end end
function edit-todo function edit-todo
hx ~/sync/todo.txt hx ~/sync/todo.txt

View file

@ -31,6 +31,7 @@ pkgs.writeShellScriptBin "traewelling" ''
date -d "@$(( $(date -d "$(j .train.destination.arrival)" +%s) - $(date +%s) - 60 * 60))" +%H:%M date -d "@$(( $(date -d "$(j .train.destination.arrival)" +%s) - $(date +%s) - 60 * 60))" +%H:%M
) at $(j .train.destination.rilIdentifier) $(j .train.destination.arrivalPlatformReal)" ) at $(j .train.destination.rilIdentifier) $(j .train.destination.arrivalPlatformReal)"
echo "bahn.expert: https://bahn.expert/details/$(j .train.lineName | sed -E 's/(.*?) .*/\1/g')%20$(j .train.journeyNumber)" echo "bahn.expert: https://bahn.expert/details/$(j .train.lineName | sed -E 's/(.*?) .*/\1/g')%20$(j .train.journeyNumber)"
echo
fi fi
'' ''