diff --git a/guzzy/commands/diff.sh b/guzzy/commands/diff.sh index b00341e..14d453c 100755 --- a/guzzy/commands/diff.sh +++ b/guzzy/commands/diff.sh @@ -1,4 +1,3 @@ #!/bin/sh -git status | awk '/modified/ { print $2 }' | fzf --preview \ - 'git diff --color=always {}' +git ls-files --modified | fzf --preview 'git diff --color=always {}'