comparison rc/bash @ 280:758dd58bb3cb

Ensure less does actually exist. Default to more.
author Edho Arief <edho@myconan.net>
date Sat, 24 Dec 2011 23:44:11 +0700
parents 33d0cb669e1f
children 9d5247df20e9
comparison
equal deleted inserted replaced
279:33d0cb669e1f 280:758dd58bb3cb
19 shopt -s histappend 19 shopt -s histappend
20 PROMPT_COMMAND="history -a" 20 PROMPT_COMMAND="history -a"
21 export HISTFILESIZE=10000 21 export HISTFILESIZE=10000
22 export HISTCONTROL=ignoredups 22 export HISTCONTROL=ignoredups
23 23
24 export PAGER="less -Rins" 24 export PAGER="more"
25 export EDITOR=vi 25 export EDITOR="vi"
26 export LANG="en_US.UTF-8" 26 export LANG="en_US.UTF-8"
27 export CLICOLOR= 27 export CLICOLOR=
28 export LSCOLORS=ExGxFxdxCxegedabagExEx 28 export LSCOLORS=ExGxFxdxCxegedabagExEx
29 29
30 alias less="less -Rins"
31 alias ls="ls -F" 30 alias ls="ls -F"
32 alias rm="rm -i" 31 alias rm="rm -i"
33 alias rd="rdesktop -g 1280x600 -K -a 16 -z -P -r sound:off -r clipboard:CLIPBOARD -5" 32 alias rd="rdesktop -g 1280x600 -K -a 16 -z -P -r sound:off -r clipboard:CLIPBOARD -5"
34 33
35 _has_gnu_ls= 34 _has_gnu_ls=
163 if command -v vim > /dev/null 2>&1; then 162 if command -v vim > /dev/null 2>&1; then
164 alias vi=vim 163 alias vi=vim
165 export EDITOR=vim 164 export EDITOR=vim
166 fi 165 fi
167 166
167 if command -v less > /dev/null 2>&1; then
168 alias less="less -Rins"
169 export PAGER="less -Rins"
170 fi
171
168 rm -If "/tmp/.nonexistent.$(date '+%Y%m%d%H%M%S')" 2> /dev/null && alias rm="rm -I" 172 rm -If "/tmp/.nonexistent.$(date '+%Y%m%d%H%M%S')" 2> /dev/null && alias rm="rm -I"
169 173
170 [ -f "${HOME}/.ecos_bash.after" ] && . "${HOME}/.ecos_bash.after" 174 [ -f "${HOME}/.ecos_bash.after" ] && . "${HOME}/.ecos_bash.after"
171 175