{ ... }: { text = '' # Open bluetooth control panel. function bluetooth() { blueman-manager } # Open network control panel. function network() { nm-connection-editor } # Show active connections. function nms() { nmcli connection show } # Start the connection. # Usage: nu function nmu() { nmcli connection up "''${@}" } # Stop the connection. # Usage: nd function nmd() { nmcli connection down "''${@}" } function _complete_connections() { _autocomplete $(nmcli connection show | sed "1d" | cut -d\ -f1) } complete -F _complete_connections nmd nmu ''; }