aboutsummaryrefslogtreecommitdiff
path: root/bin/yiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/yiff')
-rwxr-xr-xbin/yiff14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/yiff b/bin/yiff
new file mode 100755
index 0000000..24759fe
--- /dev/null
+++ b/bin/yiff
@@ -0,0 +1,14 @@
+#!/usr/bin/mksh
+# Script by Ypnose - http://ywstd.fr
+
+while IFS=$'\n' read -r LINE; do
+ CHAR="${LINE::1}"
+ case $CHAR in
+ \-) print -- "\033[1;31m${LINE}\033[0m" ;;
+ \+) print -- "\033[0;32m${LINE}\033[0m" ;;
+ \@) print -- "\033[1;35m${LINE}\033[0m" ;;
+ *) print -- "$LINE" ;;
+ esac
+done
+
+exit