From 1c690b43d2b4c496fa8556ef9e2e9f7945df4d48 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Tue, 10 Jan 2012 08:33:39 +0900 Subject: [PATCH] less works when using windows --- .bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 58b7da0..38d5ee7 100755 --- a/.bashrc +++ b/.bashrc @@ -42,7 +42,12 @@ test -r /etc/bashrc && . /etc/bashrc export PS1="\$(prompt_function)\$ " # PROMPT_COMMAND=prompt_function -export PAGER="less" +if iswindows +then + export PAGER="tr -d '\r' | less" +else + export PAGER="less" +fi export EDITOR="vi" export VISUAL="$EDITOR" export LESS="-iRMX"