Remove auto change directory in ansi-term

By sending `cd` command, it clears previous shell output. This is only
an issue with ansi-term, not other shells.
This commit is contained in:
Tu Do 2015-05-25 10:47:13 +07:00 committed by syl20bnr
parent 92da48db9f
commit d6b5f596b5

View file

@ -137,10 +137,6 @@
(delete-window))))))
(add-hook 'term-mode-hook 'ansi-term-handle-close)
(defun term-switch-dir-hook ()
(term-send-raw-string (concat "cd " default-directory "\n")))
(add-hook 'shell-pop-in-hook #'term-switch-dir-hook)
(defun spacemacs/default-pop-shell ()
"Open the default shell in a popup."
(interactive)