sane-term is ansi-term with sane options and the ability to cycle/create terms.
sane-termwill cycle through term buffers, creating one if there are none.
sane-term-createwill create a new term buffer.
(use-package sane-term :ensure t :bind ( ("C-x t" . sane-term) ("C-x T" . sane-term-create)))
$SHELL or "/bin/sh"] - shell to use for sane-term.
sane-termwill create first term if none exist.
t] - C-d or
exitwill kill the term buffer.
t] - After killing a term buffer, cycle to another.
When you start a term you may find your environment variables are not set. This is the proper, yet unexpected behavior. You can read about it here https://github.com/adamrt/sane-term/issues/6 but the gist is that your
~/.profile is not being read. Non-login shells read from
~/.bashrc instead. Put the following in your
~/.bashrc (create it if necessary).
source /etc/profile source ~/.profile