Mercurial > ec-dotfiles
comparison rc/bashrc @ 488:e3648f0482e5
Automatically exit less when the file is less than one screenful.
| author | edogawaconan <me@myconan.net> |
|---|---|
| date | Fri, 08 Nov 2013 14:31:53 +0900 |
| parents | be8a91c2fd64 |
| children | ffef7605f833 |
comparison
equal
deleted
inserted
replaced
| 487:ec49852111cb | 488:e3648f0482e5 |
|---|---|
| 238 export EDITOR=vim | 238 export EDITOR=vim |
| 239 fi | 239 fi |
| 240 | 240 |
| 241 if command -v less > /dev/null 2>&1; then | 241 if command -v less > /dev/null 2>&1; then |
| 242 export PAGER=less | 242 export PAGER=less |
| 243 export LESS='-MRXginsz-2' | 243 export LESS=-FMRXginsz-2 |
| 244 fi | 244 fi |
| 245 | 245 |
| 246 # Test if we have GNU rm prefixed by g (esp if on non-GNU system). | 246 # Test if we have GNU rm prefixed by g (esp if on non-GNU system). |
| 247 # Usually on old Solaris and {Net,Open,DragonFly}BSD. | 247 # Usually on old Solaris and {Net,Open,DragonFly}BSD. |
| 248 if command -v grm > /dev/null 2>&1; then | 248 if command -v grm > /dev/null 2>&1; then |
