Executing Git commands (for example, "Git diff" or "Git help commit") returns "smart paper" errors,

On my Xubuntu 14.04 system, I installed Git with

sudo apt-get install git

Everything works fine (I'm just starting to learn it), but doing

git diff

returns

error: cannot run sensible-paper: No such file or directory

as the first line. In other words, after the first line this gives the difference between the files.

In addition, the team

man git

(or any other help commands such as git help commit) are returned:

man: can't execute sensible-paper: No such file or directory
man: command exited with status 255: (cd /home/max/Desktop/Git Learning && LESS=-ix8RmPm Manual page git-commit(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page git-commit(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$ MAN_PN=git-commit(1) sensible-paper)

And so I can’t get any help on Git at all (from my shell). I have Googled for a solution, but did not find anything like the above errors. Any help was appreciated.

+4
source share
2 answers

sensible-paper sensible-pager, , .

, ,

env | grep sensible-paper

Git ,

git config --global core.pager sensible-pager
+2

ranger. DEFAULT_PAGER : https://bugs.launchpad.net/ubuntu/+source/ranger/+bug/1331444.

sensible-paper sensible-pager :

/usr/share/ranger/ranger/ext/rifle.py:23:DEFAULT_PAGER = 'sensible-paper'
/usr/share/ranger/ranger/__init__.py:27:DEFAULT_PAGER = 'sensible-paper'
/usr/share/ranger/rifle:23:DEFAULT_PAGER = 'sensible-paper'
+1

All Articles