view .elisp/settings/10.tramp.el @ 526:852565046ed0 default tip

zsh: fidget with screen/tmux message This should speed things up very slightly by avoiding some `grep` action in the common case of no detached screens/tmuxes.
author Augie Fackler <raf@durin42.com>
date Mon, 14 Nov 2022 11:02:35 -0500
parents 779ecb9643c2
children
line wrap: on
line source

;; Prevent TRAMP from being too clever about $PATH
(require 'tramp)
(add-to-list 'tramp-remote-path 'tramp-own-remote-path)

;; sometime in 2014 tramp started passing -l to sh, which doesn't work
;; with BSD sh. Use bash instead.
(add-to-list 'tramp-connection-properties
             (list (regexp-quote "home.durin42.com") "remote-shell" "bash"))

;; Backup (file~) disabled and auto-save (#file#) locally to prevent delays in editing remote files
(add-to-list 'backup-directory-alist
             (cons tramp-file-name-regexp nil))
(setq tramp-auto-save-directory temporary-file-directory)