2025.04.30-20:50
This commit is contained in:
10
nixos_24.11_cinnamon/config/home/nemo_actions/compare.sh
Executable file
10
nixos_24.11_cinnamon/config/home/nemo_actions/compare.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
savedfile=/var/tmp/compare-save-for-later.$USER
|
||||
comparator=meld
|
||||
if [ "$1" == "save" ]; then
|
||||
shift
|
||||
echo "$*" > "$savedfile"
|
||||
elif [ "$1" == "compare" ]; then
|
||||
shift
|
||||
"$comparator" "$*" "$(cat $savedfile)"
|
||||
fi
|
Reference in New Issue
Block a user