Skip to content

Commit

Permalink
Merge pull request #291 from jby/patch2
Browse files Browse the repository at this point in the history
Patch to fix #290
  • Loading branch information
ethancedwards8 authored Oct 17, 2024
2 parents 2c5913d + 83464a1 commit 2a9c6e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ get_ssid()
;;

Darwin)
if networksetup -getairportnetwork en0 | cut -d ':' -f 2 | sed 's/^[[:blank:]]*//g' &> /dev/null; then
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" "")
echo "$wifi_label$(ipconfig getsummary en0 | awk -F ' SSID : ' '/ SSID : / {print $2}')"
else
echo "$ethernet_label"
fi
Expand Down

0 comments on commit 2a9c6e9

Please sign in to comment.