dotfiles/.local/bin/scripts/st-diff

8 lines
132 B
Plaintext
Raw Normal View History

2021-03-30 16:07:58 +00:00
#!/bin/sh
2021-04-02 18:57:58 +00:00
set -e
2021-03-30 16:07:58 +00:00
dif "$(st-unarchive "$1")" "$@"
echo "y to restore"
read answer
test "$answer" = "y" && st-restore "$1" || exit 0