File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ npm i -g npm@latest
26
26
# cd /Users/vladimir/.oh-my-zsh/custom/themes/spaceship-prompt
27
27
# git pull --rebase
28
28
# cd ~
29
- bun upgrade
29
+ bun upgrade --stable
30
30
sudo softwareupdate -iaR
31
31
omz update
32
32
omz reload
Original file line number Diff line number Diff line change
1
+ #! /bin/zsh
2
+
3
+ # Get the network service name for the DL-dock
4
+ DOCK_SERVICE=" DL-Dock"
5
+ # look up if dock provided ip address
6
+ IP_ADDR=$( /usr/sbin/networksetup -getinfo " $DOCK_SERVICE " | grep " IP address" | awk ' {print $NF}' )
7
+
8
+ echo " ip addr found is: $IP_ADDR "
9
+
10
+ # Check if the network service is connected
11
+ if [[ $IP_ADDR != ' none' ]]; then
12
+ # If connected, disable Wi-Fi
13
+ networksetup -setairportpower en0 off
14
+ else
15
+ # If not connected, enable Wi-Fi
16
+ networksetup -setairportpower en0 on
17
+ fi
You can’t perform that action at this time.
0 commit comments