Skip to content

Commit

Permalink
Show webp images by default
Browse files Browse the repository at this point in the history
Previously, lsix only showed webp if the filename was specified. Now,
webp files will be listed if no filenames are given on the command line.
  • Loading branch information
hackerb9 committed Sep 10, 2020
1 parent f525df7 commit f218619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lsix
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ main() {
if [[ $# == 0 ]]; then
# No command line args? Use a sorted list of image files in CWD.
shopt -s nullglob nocaseglob nocasematch
set -- *{jpg,jpeg,png,gif,tiff,tif,p?m,x[pb]m,bmp,ico,svg,eps}
set -- *{jpg,jpeg,png,gif,webp,tiff,tif,p?m,x[pb]m,bmp,ico,svg,eps}
[[ $# != 0 ]] || exit
readarray -t < <(printf "%s\n" "$@" | sort)

Expand Down

0 comments on commit f218619

Please sign in to comment.