about summary refs log tree commit diff
path: root/users/wpcarro/emacs/.emacs.d/wpc/ssh.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2021-12-24T22·35-0500
committerclbot <clbot@tvl.fyi>2021-12-24T22·41+0000
commit9df5610cb76fdc934afe418a07b8886513b6c56f (patch)
tree6b5413fee94ec55769c4a299e5025ab3ff2f488c /users/wpcarro/emacs/.emacs.d/wpc/ssh.el
parentbd85e08e3ddd150a6b51d3f408807d77ca986937 (diff)
feat(wpcarro/emacs): Support wpcarro@wpcarro.dev in ssh.el r/3377
I'm accustomed to using vim in a GUI terminal to edit remote files. I'm trying
to ween-off of this dependency in favor of using Emacs.

Change-Id: Ib71d18135a7a9ef6ef61dfce814fffbea79a36f7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4589
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
Diffstat (limited to '')
-rw-r--r--users/wpcarro/emacs/.emacs.d/wpc/ssh.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/users/wpcarro/emacs/.emacs.d/wpc/ssh.el b/users/wpcarro/emacs/.emacs.d/wpc/ssh.el
index 4e6f8fef75..eb7debc492 100644
--- a/users/wpcarro/emacs/.emacs.d/wpc/ssh.el
+++ b/users/wpcarro/emacs/.emacs.d/wpc/ssh.el
@@ -41,10 +41,8 @@
 ;; enables ControlMaster.
 (setq tramp-use-ssh-controlmaster-options nil)
 
-(defcustom ssh-hosts '("desktop")
-  "List of hosts to which I commonly connect.
-Note: It could be interesting to read these values from ~/.ssh-config, but
-  that's more than I need at the moment.")
+(defcustom ssh-hosts '("wpcarro@wpcarro.dev")
+  "List of hosts to which I commonly connect.")
 
 (defun ssh-sudo-buffer ()
   "Open the current buffer with sudo rights."
@@ -58,7 +56,7 @@ Note: It could be interesting to read these values from ~/.ssh-config, but
   "Prompt for an SSH host and open a dired buffer for wpcarro on that machine."
   (interactive)
   (let ((machine (completing-read "Machine: " ssh-hosts)))
-    (find-file (format "/ssh:wpcarro@%s:~" machine))))
+    (find-file (format "/ssh:%s:~" machine))))
 
 (provide 'ssh)
 ;;; ssh.el ends here