Browse Source

less works when using windows

pull/1/head
10sr 13 years ago
parent
commit
1c690b43d2
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      .bashrc

+ 6
- 1
.bashrc View File

@@ -42,7 +42,12 @@ test -r /etc/bashrc && . /etc/bashrc


export PS1="\$(prompt_function)\$ " export PS1="\$(prompt_function)\$ "
# PROMPT_COMMAND=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 EDITOR="vi"
export VISUAL="$EDITOR" export VISUAL="$EDITOR"
export LESS="-iRMX" export LESS="-iRMX"


Loading…
Cancel
Save