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:
parent
92da48db9f
commit
d6b5f596b5
|
@ -137,10 +137,6 @@
|
||||||
(delete-window))))))
|
(delete-window))))))
|
||||||
(add-hook 'term-mode-hook 'ansi-term-handle-close)
|
(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 ()
|
(defun spacemacs/default-pop-shell ()
|
||||||
"Open the default shell in a popup."
|
"Open the default shell in a popup."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
Loading…
Reference in a new issue