bash-completion.sh
branchv_0
changeset 5 ee4ba9f5a053
parent 0 bb715a82a8f1
child 29 dc3c102e1264
--- a/bash-completion.sh	Wed Nov 29 01:27:05 2023 +0100
+++ b/bash-completion.sh	Fri Dec 01 20:25:49 2023 +0100
@@ -28,13 +28,23 @@
 		"147258"
 	)
 
+	local SHADER_TYPE=(
+		"vertex"
+		"fragment"
+	)
+
 	if   [[ "$w1" == "--texture" ]]; then
 		COMPREPLY=($(compgen -f -- "$w0"; compgen -d -S / -- "$w0"))
+	elif [[ "$w1" == "--shader" ]]; then
+		COMPREPLY=($(compgen -W "${SHADER_TYPE[*]}" -- "$w0"))
+	elif [[ "$w2" == "--shader" ]]; then
+		COMPREPLY=($(compgen -f -- "$w0"; compgen -d -S / -- "$w0"))
 	elif [[ "$w1" == "--background-color" ]]; then
 		COMPREPLY=($(compgen -W "${COLOR[*]}" -- "$w0"))
 	else
 		local OPTIONS=(
 			"--texture"
+			"--shader"
 			"--background-color"
 			"--root-window"
 		)