Update autoinstall stuff
This commit is contained in:
		
							parent
							
								
									f38ec68822
								
							
						
					
					
						commit
						3b16b3440e
					
				
					 6 changed files with 57 additions and 33 deletions
				
			
		|  | @ -30,21 +30,12 @@ _dott_completions() | |||
| } | ||||
| complete -F _dott_completions ".t" | ||||
| 
 | ||||
| #_autostart_manage_completions() | ||||
| #{ | ||||
| #	if [ "${#COMP_WORDS[@]}" == "2" ]; then | ||||
| #		return | ||||
| #	fi | ||||
| # | ||||
| #	COMPREPLY=() | ||||
| #	while IFS='' read -r line | ||||
| #	do | ||||
| #		COMPREPLY+=("$line") | ||||
| #	done < <(compgen -W "$(autostart-manage list)" "${COMP_WORDS[1]}") | ||||
| #} | ||||
| #complete -F _autostart_manage_completions "autostart-manage" | ||||
| 
 | ||||
| for additional_completions in "$XDG_CONFIG_HOME/completionsrc.d/"*; do | ||||
| 	# shellcheck disable=1090 | ||||
| 	. "$additional_completions" | ||||
| done | ||||
| completions_dir="$XDG_CONFIG_HOME/completionsrc.d/" | ||||
| if [ -n "$(ls "$completions_dir" 2>/dev/null)" ] | ||||
| then | ||||
| 	for additional_completions in "$completions_dir"* | ||||
| 	do | ||||
| 		# shellcheck disable=1090 | ||||
| 		. "$additional_completions" | ||||
| 	done | ||||
| fi | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue