From abf39c44d0a2343455eca9d2766734e2b7608c42 Mon Sep 17 00:00:00 2001 From: samedamci Date: Thu, 26 Aug 2021 22:25:15 +0200 Subject: [PATCH] Add diff command --- guzzy/commands/diff.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 guzzy/commands/diff.sh diff --git a/guzzy/commands/diff.sh b/guzzy/commands/diff.sh new file mode 100755 index 0000000..b00341e --- /dev/null +++ b/guzzy/commands/diff.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +git status | awk '/modified/ { print $2 }' | fzf --preview \ + 'git diff --color=always {}'