Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -3150,11 +3150,12 @@ _comp_complete_longopt()
}
# makeinfo and texi2dvi are defined elsewhere.
complete -F _comp_complete_longopt \
a2ps awk base64 bash bc bison cat chroot colordiff cp \
a2ps awk base{32,64,nc} bash bc bison cat chroot colordiff comm cp \
csplit cut date df diff dir du enscript expand fmt fold gperf \
grep grub head irb ld ldd less ln ls m4 mkdir mkfifo mknod \
mv netstat nl nm objcopy objdump od paste pr ptx readelf rm rmdir \
sed seq shar sort split strip sum tac tail tee \
mv netstat nl nm numfmt objcopy objdump od paste pr ptx readelf \
readlink realpath rm rmdir sed seq shar shred \
shuf sort split stat strip sum sync tac tail tee \
texindex touch tr uname unexpand uniq units vdir wc who

# @since 2.12
Expand Down
2 changes: 1 addition & 1 deletion completions/chgrp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ _comp_cmd_chgrp()
for w in "${words[@]}"; do
[[ $w == -@(R|-recursive) ]] && opts="-H -L -P" && break
done
_comp_compgen -- -W '-c -h -f -R -v --changes --dereference
_comp_compgen -- -W '-c -h -f -R -v --changes --dereference --from
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note, we'd be better off parsing instead of hardcoding, but that's something for another PR.

--no-dereference --silent --quiet --reference --recursive --verbose
--help --version $opts'
return
Expand Down
3 changes: 1 addition & 2 deletions completions/dd
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ _comp_cmd_dd()
;;
iflag=* | oflag=*)
_comp_compgen -c "${cur#*=}" -- -W 'append direct directory dsync
sync fullblock nonblock noatime nocache noctty nofollow
count_bytes skip_bytes seek_bytes'
sync fullblock nonblock noatime nocache noctty nofollow'
return
;;
status=*)
Expand Down
3 changes: 2 additions & 1 deletion completions/sha256sum
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ _comp_cmd_sha256sum()
_comp_compgen -v files filedir &&
_comp_compgen -- -X "*.$sumtype" -W '"${files[@]}"'
} &&
complete -F _comp_cmd_sha256sum b2sum md5sum sha{,1,224,256,384,512}sum
complete -F _comp_cmd_sha256sum b2sum cksum md5sum \
sha{,1,224,256,384,512}sum

# ex: filetype=sh