Update multi-term buffer name based on PWD
问题 If I use konsole or other terminal, the terminal tag name can change based on PWD. But in multi-term, the buffer name is *terminal<number>* . This is not very nice. Because when I switch between them, the name is not very informative. So I want to rename it based on PWD. I find that the Enter key is bind to term-send-raw, so I write a function (defadvice term-send-raw (around rename-term-name activate) (progn (rename-buffer (concat "⇒ " (shell-command-to-string "pwd | xargs basename | tr -d '