.bashrc: We must export variables so children can access them

Child processes like `crontab -e` couldn't see that we wanted to
use vim for our editor, as the variable wasn't exported.
This commit is contained in:
Alan Orth 2013-06-14 12:40:28 +03:00
parent c2fca72887
commit 8151b68bf2

View File

@ -11,8 +11,8 @@ alias less='less -R' # preserves colors in `less`
# Environment # Environment
PS1='[\u@\h: \w]\$ ' PS1='[\u@\h: \w]\$ '
EDITOR=/usr/bin/vim export EDITOR=/usr/bin/vim
PAGER=/usr/bin/less export PAGER=/usr/bin/less
# Aggressive read/write of history after every command # Aggressive read/write of history after every command
PROMPT_COMMAND='history -a; history -n' PROMPT_COMMAND='history -a; history -n'