source .bash_local if exists, and use vi mode

This commit is contained in:
2013-06-07 14:29:36 -05:00
parent 11e173ec8f
commit 64f3a0a5e2
2 changed files with 7 additions and 1 deletions

View File

@@ -9,6 +9,10 @@ if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
if [ -f ~/.bash_local ]; then
. ~/.bash_local
fi
# came from Aaron Lasseigne (AaronLasseigne on GitHub)
battery_status()
{
@@ -35,5 +39,5 @@ battery_status()
fi
}
export PROMPT_COMMAND='PS1="$(battery_status) \h:\W \u\$ "'
export PROMPT_COMMAND='PS1="$(battery_status) [\d \t] \h:\W \u\$ "'

2
.inputrc Normal file
View File

@@ -0,0 +1,2 @@
set editing-mode vi
set keymap vi