From 487bc12a0b022f71348a906ac08a5ef4980c20db Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Fri, 2 Apr 2010 05:11:21 +0800 Subject: [PATCH 1/2] - Remove grep --mmap, add GIT_PAGER to less, and then set LESS argument. --- .bashrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index 8a84334..c4d3513 100644 --- a/.bashrc +++ b/.bashrc @@ -7,7 +7,7 @@ alias cls="clear" alias d="dir" alias dir="ls -l" alias f="finger" -alias g="grep --color=auto --mmap" +alias g="grep --color=auto" alias l="last" alias lo="logout" alias ls="ls --color=auto -aF" @@ -19,8 +19,10 @@ alias s="screen" alias ssh="ssh -4 -C -e none" alias t="telnet" # -export EDITOR="/usr/bin/vim" -export PAGER="/usr/bin/most" +export EDITOR="vim" +export GIT_PAGER="less" +export LESS="-EfmrSw" +export PAGER="most" # shopt -s checkwinsize shopt -s histappend From aa6dd3279faf9078ee515be0546e77812f0347a7 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Tue, 6 Apr 2010 00:12:51 +0800 Subject: [PATCH 2/2] - Add complete "cd". --- .bashrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bashrc b/.bashrc index c4d3513..114350e 100644 --- a/.bashrc +++ b/.bashrc @@ -19,6 +19,8 @@ alias s="screen" alias ssh="ssh -4 -C -e none" alias t="telnet" # +complete -d cd +# export EDITOR="vim" export GIT_PAGER="less" export LESS="-EfmrSw"