1
0
Fork 0
dotfiles/.local/bin/scripts/gls
2026-01-06 07:36:53 +03:00

5 lines
113 B
Bash
Executable file

#!/bin/bash
filter=(sed '/^\./d')
[ "$1" = '-a' ] && filter=('cat') && shift
git ls-files "$@" | "${filter[@]}"