fix(emacs): Explicitly set TRAMP host shell to Bash
Fixes hang during connection.
This commit is contained in:
@@ -5,6 +5,13 @@
|
|||||||
(file-name-concat syd-cache-dir "tramp"))
|
(file-name-concat syd-cache-dir "tramp"))
|
||||||
(setq tramp-auto-save-directory
|
(setq tramp-auto-save-directory
|
||||||
(file-name-concat syd-cache-dir "tramp-autosave/"))
|
(file-name-concat syd-cache-dir "tramp-autosave/"))
|
||||||
|
;; TRAMP's default settings try to disable Readline, *rc files, profiles, etc.
|
||||||
|
;; This is all very important and prevents unexpected behaviour and various
|
||||||
|
;; hangs/crashes. However, the default settings (`tramp-sh-extra-args') can
|
||||||
|
;; only kick in when the shell is accurately identified — on my NixOS system,
|
||||||
|
;; /bin/sh links to Bash. Thus, the appropriate flags are never applied,
|
||||||
|
;; unless we make the Bash of the matter explicit.
|
||||||
|
(setq tramp-encoding-shell (executable-find "bash"))
|
||||||
(add-to-list 'tramp-remote-path 'tramp-own-remote-path))
|
(add-to-list 'tramp-remote-path 'tramp-own-remote-path))
|
||||||
|
|
||||||
(provide 'syd-tramp)
|
(provide 'syd-tramp)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ in {
|
|||||||
programs.readline = {
|
programs.readline = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# Unfortunately, the Vi mode is... bad!
|
# Unfortunately, the Vi mode is... bad.
|
||||||
set editing-mode emacs
|
set editing-mode emacs
|
||||||
|
|
||||||
# Mimmic Comint/Eshell binds.
|
# Mimmic Comint/Eshell binds.
|
||||||
|
|||||||
Reference in New Issue
Block a user