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

6 lines
124 B
Bash
Executable File

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