zsh - git no pager for specific commands -


i realize can git --no-pager <command> prevent output being run through pager. realize can use, instance, git config --global core.pager cat.

however there commands want use pager automatically, e.g. diff, , others not, e.g. stash. typing out --no-pager each time not efficient i'd like.

is there way set configuration individual commands? alternative possible have zsh automatically insert --no-pager when calling stash without using alias?

as this answer points out, can use pager.stash false turn off pagination stash:

git config --global pager.stash false 

more generally, can use pager.<command> other commands, diff

git config --global pager.<command> false git config --global pager.diff false 

from official linux kernel git documentation git config:

pager.<cmd> 

if value boolean, turns on or off pagination of output of particular git subcommand when writing tty. otherwise, turns on pagination subcommand using pager specified value of pager.<cmd>. if --paginate or --no-pager specified on command line, takes precedence on option. disable pagination commands, set core.pager or git_pager cat.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -