Add completion to please alias

This commit is contained in:
Akemi Izuko 2023-12-23 20:14:20 -07:00
parent ad005f402b
commit 1c448b04c4
Signed by: akemi
GPG key ID: 8DE0764E1809E9FC

View file

@ -43,6 +43,16 @@ vifmmv() {
cd "$dst" cd "$dst"
} }
# Fancy sudo
_please()
{
local cur prev opts
local cur="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=( $(compgen -c "${cur}") )
return 0
}
complete -F _please please
# Keyboard layout switching ========================================= # Keyboard layout switching =========================================
sww() { sww() {
if ! [[ -x ~/.configs_pointer/bin/switch_keyboards.sh ]]; then if ! [[ -x ~/.configs_pointer/bin/switch_keyboards.sh ]]; then