Skip to content

Commit 2a9c6e9

Browse files
Merge pull request #291 from jby/patch2
Patch to fix #290
2 parents 2c5913d + 83464a1 commit 2a9c6e9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/network.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ get_ssid()
2424
;;
2525

2626
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'
27+
if ipconfig getsummary en0 | awk -F ' SSID : ' '/ SSID : / {print $2}'; then
28+
wifi_label=$(get_tmux_option "@dracula-network-wifi-label" "")
29+
echo "$wifi_label$(ipconfig getsummary en0 | awk -F ' SSID : ' '/ SSID : / {print $2}')"
2930
else
3031
echo "$ethernet_label"
3132
fi

0 commit comments

Comments
 (0)