How to configure emacs.app to use git in * shell * for git on OSX

I am using emacs.app 23.1.1 on OsX and am trying to use git inside the shell.
When I use a type command git log-p, I get

WARNING: terminal is not fully functional
-  (press RETURN)

I also get something similar with git commit, and I am forced to use git commit -m.

How can I configure emacs.appit to work in its shell?

+3
source share
7 answers

Have you at least configured your git editor as emacs? (as shown in the Pro git book and in the git community book )

git config -–global core.editor emacs

Because then ` vi` should never be called.

+4

?

M-x term

( , M-x shell).

+5

git log (, IMHO) "". . , .

, git help, -, man, :

MANPAGER=cat git help log
+4

GIT_PAGER /bin/cat

Bash .bashrc:

export GIT_PAGER=/bin/cat

+2

* shell * - , . M-x term. : " eterm" .

mkdir ~/.terminfo/65;
cp /Applications/MacPorts/Emacs.app/Contents/Resources/etc/e/eterm-color ~/.terminfo/65/

, emacs.app( emacs.app MacPorts - ). , "info".

: emacs emacs, emacs emacs. . emacs / .

+1

Mx term:..., mode , , , emacs buffer (Cc Cj). , . (C-c C-j) char (C-c C-k) . , ansi-term (M-x ansi-term) .

+1

I had a problem after installing something. My TERM installed "xterm-256color". Changing this parameter to "xterm-color" in my ~ / .bash_profile file solved the problem. Just add:

export TERM="xterm-color"
0
source

Source: https://habr.com/ru/post/1769943/


All Articles