dotfiles/.local/bin/scripts/st-diff
2021-04-02 20:57:58 +02:00

7 lines
132 B
Bash
Executable file

#!/bin/sh
set -e
dif "$(st-unarchive "$1")" "$@"
echo "y to restore"
read answer
test "$answer" = "y" && st-restore "$1" || exit 0