Fix bash-completions dir
Add color to autostart-manage info
This commit is contained in:
		
							parent
							
								
									056b7fc89e
								
							
						
					
					
						commit
						ef3602167e
					
				
					 2 changed files with 21 additions and 4 deletions
				
			
		|  | @ -41,10 +41,24 @@ _autostart_run_graphical () { | |||
| _echo_table () { | ||||
| 	for unit in "$@" | ||||
| 	do | ||||
| 		if _systemctl "$unit" is-enabled --quiet | ||||
| 		then | ||||
| 			_enabled=$(green "enabled") | ||||
| 		else | ||||
| 			_enabled=$(red "disabled") | ||||
| 		fi | ||||
| 
 | ||||
| 		if _systemctl "$unit" is-active --quiet | ||||
| 		then | ||||
| 			_active=$(green "active") | ||||
| 		else | ||||
| 			_active=$(red "inactive") | ||||
| 		fi | ||||
| 
 | ||||
| 		printf "%s\t%s\t%s\t%s\n" \ | ||||
| 			"$unit" \ | ||||
| 			"$(_systemctl "$unit" is-enabled)" \ | ||||
| 			"$(_systemctl "$unit" is-active)" \ | ||||
| 			"$_enabled" \ | ||||
| 			"$_active" \ | ||||
| 			"$(_get_autostart_cmd "$unit")" | ||||
| 	done | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue