Now, something like [alias] pd = -p diff works as expected. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@xxxxxx> --- git.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/git.c b/git.c index 537af3a..a969b1b 100644 --- a/git.c +++ b/git.c @@ -115,6 +115,12 @@ static int handle_alias(int *argcp, cons count = split_cmdline(alias_string, &new_argv); + if (count > 0 && !strcmp(new_argv[0], "-p")) { + setup_pager(); + count--; + new_argv++; + } + if (count < 1) die("empty alias for %s", alias_command); -- 1.4.1.g3c58e - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html