Own : Add completion.

This commit is contained in:
Dmitry Voronin 2024-03-29 05:35:15 +03:00
parent aae242b57f
commit ca25101652
3 changed files with 12 additions and 1 deletions

View file

@ -28,3 +28,9 @@ function own() {
chmod -077 -R "${file}"
done
}
function _complete_own() {
_autocomplete_first_ls $(_get_users)
}
complete -F _complete_own own

View file

@ -17,7 +17,7 @@ function sudo() {
}
function _complete_s() {
_autocomplete "voronind" "dasha"
_autocomplete_first $(_get_users)
}
complete -F _complete_s s

View file

@ -131,3 +131,8 @@ function _is_root() {
function _bell() {
echo -e '\a'
}
function _get_users() {
local users=("voronind" "dasha")
echo ${users[@]}
}