summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2016-10-04 19:26:22 +0200
committerAlan Pearce2016-10-04 19:26:22 +0200
commitb732c0c1071e9b05fda2e5206e5c70b8ffdf1891 (patch)
tree66babf718a534edc9b1f07cb724d77028dd1dbf9 /tag-emacs
parentba2007da28bfbc34c4fc2240a5d4414826a13ae0 (diff)
downloadnixfiles-b732c0c1071e9b05fda2e5206e5c70b8ffdf1891.tar.lz
nixfiles-b732c0c1071e9b05fda2e5206e5c70b8ffdf1891.tar.zst
nixfiles-b732c0c1071e9b05fda2e5206e5c70b8ffdf1891.zip
Emacs: Fix tramp prompt regexp for FreeBSD hosts
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.org2
1 files changed, 1 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index 4401ef08..4c4603d0 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -600,7 +600,7 @@ that I can sudo on remote machines
 												   (not (let ((method (file-remote-p name 'method)))
 														  (when (stringp method)
 															(member method '("su" "sudo")))))))
-					tramp-shell-prompt-pattern "\\(?:^\\|
\\)[^]#$%>\n]*#?[]#$%>❯›] *\\(\\[[0-9;]*[a-zA-Z] *\\)*")
+					tramp-shell-prompt-pattern "\\(?:^\\|
\\)[^]#$%>\n]*#?[]#$%>❯›] *\\(\\[\\??[0-9;]*[a-zA-Z] *\\)*")
 			  (add-to-list 'tramp-default-proxies-alist '(nil "\\`root\\'" (concat "/" tramp-default-method ":%h:")))
 			  (add-to-list 'tramp-default-proxies-alist `(,(regexp-quote (system-name)) nil nil))
 			  (add-to-list 'tramp-default-proxies-alist '("localhost" nil nil))