all repos — nixfiles @ b732c0c1071e9b05fda2e5206e5c70b8ffdf1891

System and user configuration, managed by nix and home-manager

Emacs: Fix tramp prompt regexp for FreeBSD hosts

Alan Pearce
commit

b732c0c1071e9b05fda2e5206e5c70b8ffdf1891

parent

ba2007da28bfbc34c4fc2240a5d4414826a13ae0

1 file changed, 1 insertion(+), 1 deletion(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -600,7 +600,7 @@ (and (normal-backup-enable-predicate name)
(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))