diff options
-rw-r--r-- | init.org | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -569,13 +569,13 @@ TRAMP is a really convenient way to edit files on remote systems from within the I’m not using this yet. I’d like to figure out how to make TRAMP use =ssh1= as a proxy only when I’m not connected to the institute’s network. -#+BEGIN_SRC elisp :noweb-ref nil +#+BEGIN_SRC elisp (defun at-work-p () "Tell me if I’m connected to the network at work." (with-temp-buffer (call-process "ip" nil t nil "route" "list" "root" "141.80/16") ;; There is no output when there is no route with this prefix. - (not (equalp (point-min) (point-max))))) + (not (equal (point-min) (point-max))))) #+END_SRC * Shell |