mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-08-28 12:56:26 -04:00
Remove Bash completion for doas (zsh is the intended user shell)
This commit is contained in:
@@ -58,7 +58,6 @@ permit nopass :wheel as root cmd /usr/local/bin/powerset.sh
|
||||
permit nopass :wheel as root cmd /usr/bin/poweroff
|
||||
permit nopass :wheel as root cmd /usr/bin/reboot
|
||||
" > /etc/doas.conf
|
||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/doas-completion -o /usr/share/bash-completion/completions/doas
|
||||
ln -s /usr/bin/doas /usr/local/bin/sudo
|
||||
|
||||
# pacman configuration
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
# doas(1) completion -*- shell-script -*-
|
||||
|
||||
_comp_cmd_doas()
|
||||
{
|
||||
local cur prev words cword split
|
||||
_init_completion -s || return
|
||||
|
||||
local i
|
||||
|
||||
for ((i = 1; i <= cword; i++)); do
|
||||
if [[ ${words[i]} != -* ]]; then
|
||||
local PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
|
||||
local root_command=${words[i]}
|
||||
_command_offset $i
|
||||
return
|
||||
fi
|
||||
[[ ${words[i]} == -@(!(-*)[uCLs]) ]] &&
|
||||
((i++))
|
||||
done
|
||||
|
||||
case "$prev" in
|
||||
-!(-*)u)
|
||||
COMPREPLY=($(compgen -u -- "$cur"))
|
||||
return
|
||||
;;
|
||||
-!(-*)C)
|
||||
_filedir
|
||||
return
|
||||
;;
|
||||
-!(-*)[Ls])
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
$split && return
|
||||
|
||||
if [[ $cur == -* ]]; then
|
||||
COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur"))
|
||||
[[ ${COMPREPLY-} == *= ]] && compopt -o nospace
|
||||
return
|
||||
fi
|
||||
} &&
|
||||
complete -F _comp_cmd_doas doas
|
||||
|
||||
# ex: filetype=sh
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
loadkeys us
|
||||
echo ----------------------------------------------------------------------------------------------
|
||||
echo rwinkhart\'s artix install script
|
||||
echo last updated december 07, 2023 \(rev. F\)
|
||||
echo last updated december 07, 2023 \(rev. G\)
|
||||
echo ----------------------------------------------------------------------------------------------
|
||||
echo You will be asked some questions before installation.
|
||||
echo -e "----------------------------------------------------------------------------------------------\n"
|
||||
|
||||
Reference in New Issue
Block a user