From 1856e115d7baeecec971684d26c9cef7a8ee79af Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 21 Dec 2011 01:29:12 +0900 Subject: [PATCH] remove CR when in windows and less file --- .bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 58b7da0..f9ead92 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"