-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- bash completion - zsh completion resolves #26
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
complete -W "-a -A -s -S -t -T -v -h" -o dirnames fuf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#compdef fuf | ||
# | ||
# Completion definition for fuf. | ||
|
||
setopt localoptions noshwordsplit noksharrays | ||
local -a args | ||
args=( | ||
'(-a)-a[sort alphabetical, this is default]' | ||
'(-A)-A[sort alphabetical, reversed]' | ||
'(-s)-s[sort by size]' | ||
'(-S)-S[sort by size, reversed]' | ||
'(-t)-t[sort by time]' | ||
'(-T)-T[sort by time, reversed]' | ||
'(-v)-v[version info]' | ||
'(-h)-h[usage info]' | ||
'*:filename:_files' | ||
) | ||
_arguments -S -s $args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters