Own : Add completion.
This commit is contained in:
parent
aae242b57f
commit
ca25101652
|
@ -28,3 +28,9 @@ function own() {
|
|||
chmod -077 -R "${file}"
|
||||
done
|
||||
}
|
||||
|
||||
function _complete_own() {
|
||||
_autocomplete_first_ls $(_get_users)
|
||||
}
|
||||
|
||||
complete -F _complete_own own
|
||||
|
|
|
@ -17,7 +17,7 @@ function sudo() {
|
|||
}
|
||||
|
||||
function _complete_s() {
|
||||
_autocomplete "voronind" "dasha"
|
||||
_autocomplete_first $(_get_users)
|
||||
}
|
||||
|
||||
complete -F _complete_s s
|
||||
|
|
|
@ -131,3 +131,8 @@ function _is_root() {
|
|||
function _bell() {
|
||||
echo -e '\a'
|
||||
}
|
||||
|
||||
function _get_users() {
|
||||
local users=("voronind" "dasha")
|
||||
echo ${users[@]}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue