mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Improve TRAMP performance with SSH ControlMaster and persistent sockets
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
'tools/dired
|
||||
'tools/project
|
||||
'tools/spell
|
||||
'tools/tramp
|
||||
'tools/lsp
|
||||
'tools/dap
|
||||
'tools/treesitter
|
||||
|
||||
13
dotfiles/desktop/.emacs.d/lisp/tools/tramp.el
Normal file
13
dotfiles/desktop/.emacs.d/lisp/tools/tramp.el
Normal file
@@ -0,0 +1,13 @@
|
||||
;;; tramp.el -*- lexical-binding: t; -*-
|
||||
|
||||
(use-package tramp
|
||||
:config
|
||||
(setq tramp-use-ssh-controlmaster-options t)
|
||||
(setq tramp-chunksize 500)
|
||||
(setq tramp-verbose 0)
|
||||
(setq tramp-gvfs-wget "wget --quiet")
|
||||
(setq tramp-cache-read-persistent-cache t))
|
||||
|
||||
(provide 'tools/tramp)
|
||||
|
||||
;;; tramp.el ends here
|
||||
7
dotfiles/desktop/.ssh/config
Normal file
7
dotfiles/desktop/.ssh/config
Normal file
@@ -0,0 +1,7 @@
|
||||
Host *
|
||||
ControlMaster auto
|
||||
ControlPath ~/.local/state/ssh/sockets/%r@%h-%p
|
||||
ControlPersist 600
|
||||
Compression yes
|
||||
ServerAliveInterval 60
|
||||
ServerAliveCountMax 3
|
||||
Reference in New Issue
Block a user