Skip to content

Commit

Permalink
gi: handle preview of *
Browse files Browse the repository at this point in the history
  • Loading branch information
XPhyro committed Mar 1, 2024
1 parent f8e95e7 commit 4f0648d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sh/util/integration/git/gi
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ PREVIEW='
printf "%s\n" {} \
| sed "s/^\s*[0-9]\+\. //"
)"
if [ -d "$file" ]; then
if [ "$file" = "*" ]; then
printf "%s\n" "Select all files."
elif [ -d "$file" ]; then
ls -lA -- "$file"
else
bat --color=always --style=header,grid --line-range :500 -- "$file"
Expand Down

0 comments on commit 4f0648d

Please sign in to comment.