tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

modifying shell buffer names with TRAMP data


From: Terrence Brannon
Subject: modifying shell buffer names with TRAMP data
Date: Fri, 9 Jul 2010 15:50:04 -0400

I have been using TRAMP with shell-current-directory ( http://github.com/metaperl/emacs/blob/master/shell-current-directory.el ) to open shells on remote machines successfully.

I would like to modify the directory-shell-buffer-name function:

(defun directory-shell-buffer-name ()
  "The name of a shell buffer pertaining to DIR."
  (concat "*" (file-name-nondirectory
(directory-file-name (expand-file-name default-directory))) 
"-shell*"))

so that it includes the hostname and domain name of the machine the shell is being created on.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]