# .bashrc # User specific aliases and functions # Settings in this file are only for interactive shells. # I don't know why bash loads this file for scp etc., # but return if that's the case. [ "$PS1" ] || return # Source global definitions [ -f /etc/bashrc ] && . /etc/bashrc ####################################### # user specific environment ####################################### # for mc, cvs, svn, ... export EDITOR=vim # Use vim to browse man pages. One can use Ctrl-[ and Ctrl-t # to browse and return from referenced man pages. ZZ or q to quit. # Note initially within vim, one can goto the man page for the # word under the cursor by using [section_number]K. # Note we use bash explicitly here to support process substitution # which in turn suppresses the "Vim: Reading from stdin..." warning. export MANPAGER='bash -c "vim -MRn -c \"set ft=man nomod nolist nospell nonu\" \ -c \"nm q :qa!\" -c \"nm G\" -c \"nm gg\"