From caac27a59c4874ed07429c459fcaf918c76feffb Mon Sep 17 00:00:00 2001 From: Akemi Izuko Date: Wed, 8 Nov 2023 20:20:02 -0700 Subject: [PATCH] Add completion to please alias --- bash/.bash_functions | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bash/.bash_functions b/bash/.bash_functions index 041194d..a34e3f3 100644 --- a/bash/.bash_functions +++ b/bash/.bash_functions @@ -43,6 +43,16 @@ vifmmv() { 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 ========================================= sww() { if ! [[ -x ~/.configs_pointer/bin/switch_keyboards.sh ]]; then