bin: add sync archive helpers
This commit is contained in:
parent
a6961b28a8
commit
ff31ec56c4
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# diff with pagination
|
# interactive diff with pagination
|
||||||
diff --color=always --report-identical-files -U 2 "$@" | less --quit-if-one-screen
|
diff --color=always --report-identical-files -U 2 "$@" | less --quit-if-one-screen
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
dif "$(st-unarchive "$1")" "$@"
|
||||||
|
echo "y to restore"
|
||||||
|
read answer
|
||||||
|
test "$answer" = "y" && st-restore "$1" || exit 0
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
mv "$1" "$(st-unarchive "$1")"
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
echo "$1" | cut -d'/' -f3- | sed 's/[[:digit:]]\+\.//'
|
Loading…
Reference in New Issue