Skip to content

Commit

Permalink
feat(system): ssh dev
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Aug 1, 2023
1 parent 722845c commit 9033fc1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions modules/bins/bin/dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env fish

function am_i_home
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I |
grep -w SSID |
awk '{print $2}' |
grep -w Becker >/dev/null
end

if am_i_home
ssh -o 'Hostname=darkstar.local' dev
else
echo "Using VPN..."
ssh -o 'Hostname=darkstar.vpn' dev
end

0 comments on commit 9033fc1

Please sign in to comment.