Skip to main content

Connection

What

Show details about the currently connected network.

info

Currently only supports Windows. Pull requests for Darwin and Linux support are welcome :)

Sample Configuration

× _ ohmyposh.dev × _ ohmyposh.dev

Options

NameTypeDefaultDescription
typestringwifi|ethernetthe type of connection to display. Can be a single value or multiple joined by a pipe | . The first to resolve is shown. Possible values:
  • wifi
  • ethernet
  • bluetooth
  • cellular

Template (info)

default template
{{ if eq .Type \"wifi\"}}\uf1eb{{ else if eq .Type \"ethernet\"}}\ueba9{{ end }}

Properties

NameTypeDescription
.Typestringthe connection type type. Single values of type above
.Namestringthe name of the connection