Skip to content

Commit

Permalink
Export the EDITOR variable
Browse files Browse the repository at this point in the history
  • Loading branch information
weikinhuang committed Mar 7, 2013
1 parent a9624fb commit eba62c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .bashrc
Expand Up @@ -71,6 +71,7 @@ unset file

# set $EDITOR to vi(m) if not already set
[[ -z $EDITOR ]] && EDITOR=$(type vim &> /dev/null && echo vim || echo vi)
export EDITOR=$EDITOR

# write to .bash_history after each command
__push_prompt_command 'history -a'
Expand Down

0 comments on commit eba62c9

Please sign in to comment.