changeset 175:76f201ff5abc

Start of changing proxying, possibly more to come later
author Steve Huston <huston@astro.princeton.edu>
date Mon, 23 Dec 2019 11:21:19 -0500
parents 43379ace60cc
children 5025fe31c359
files .bash_aliases
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/.bash_aliases	Wed Nov 13 15:36:53 2019 -0500
+++ b/.bash_aliases	Mon Dec 23 11:21:19 2019 -0500
@@ -84,8 +84,8 @@
 
 # Proxying/tunneling - predominantly for my Mac laptop
 proxy() {
-  PROXY_HOST=csesbh.princeton.edu
-  PROXY_PORT=8888
+  PROXY_HOST=${PROXY_HOST:-csesbh.princeton.edu}
+  PROXY_PORT=${PROXY_PORT:-8888}
   ssh -D $PROXY_PORT -f -C -q $PROXY_HOST 'sleep 15'
   /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
     --proxy-server="socks5://127.0.0.1:$PROXY_PORT" \