We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2c5913d + 83464a1 commit 2a9c6e9Copy full SHA for 2a9c6e9
scripts/network.sh
@@ -24,8 +24,9 @@ get_ssid()
24
;;
25
26
Darwin)
27
- if networksetup -getairportnetwork en0 | cut -d ':' -f 2 | sed 's/^[[:blank:]]*//g' &> /dev/null; then
28
- echo "$wifi_label$(networksetup -getairportnetwork en0 | cut -d ':' -f 2)" | sed 's/^[[:blank:]]*//g'
+ if ipconfig getsummary en0 | awk -F ' SSID : ' '/ SSID : / {print $2}'; then
+ wifi_label=$(get_tmux_option "@dracula-network-wifi-label" "")
29
+ echo "$wifi_label$(ipconfig getsummary en0 | awk -F ' SSID : ' '/ SSID : / {print $2}')"
30
else
31
echo "$ethernet_label"
32
fi
0 commit comments