-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfindu
executable file
·29 lines (23 loc) · 856 Bytes
/
findu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env fish
# findu - Find unsorted files (anything not found by finda, findc, findd, etc).
# FIX: just make it possible to shell out to findtype in this one too.
set -- script "$(path basename (status filename))"
argparse -n "$script" --ignore-unknown 'h/help' 'd/dotfiles' -- $argv
if set -q _flag_h
echo "$script - Find unsorted files (anything not found by finda, findc, findd, etc.)"
echo "Usage: $script [arguments]"
echo
echo " -h/--help - Print help and exit."
echo " -d/--dotfiles - Also print files whose name starts with a period."
echo
echo "Any unknown arguments are passed to bfs or find."
exit
end
if not set -q _flag_d
set -- dotargs -iname '.*' -or
end
set find bfs
if not command -qs bfs
set find find
end
command $find $argv -not \( $dotargs (filter --print=find supported) \)