elliottcable / dotfiles

elliottcable's dotfiles

This URL has Read+Write access

commit  c8669ad2204fb7774579daa3a25082045a3e11a1
tree    a825012fcf682cf4a0035cf5441fd138bb9f9ad6
parent  a8031d7609c665724183f9714e57da9d960081eb
dotfiles / bash_profile
100755 43 lines (29 sloc) 0.877 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
source $HOME/.profile
 
source $HOME/.bash_prompt
 
export HISTIGNORE=''
export HISTSIZE=10000
export HISTFILESIZE=$HISTSIZE
export INPUTRC='~/.inputrc'
 
if [ -f /opt/local/etc/bash_completion ]; then
  source /opt/local/etc/bash_completion
fi
 
complete -W "$(cat $HOME/.cheats)" cheat
 
if [ -f /usr/local/bin/rake_completion ]; then
  complete -C /usr/local/bin/rake_completion -o default rake
fi
 
if [ -f ~/Code/src/git/contrib/completion/git-completion.bash ]; then
  source ~/Code/src/git/contrib/completion/git-completion.bash
fi
 
export HISTIGNORE="&:ls:exit"
 
shopt -s cdspell
 
# Tab complete for sudo
complete -cf sudo
 
#prevent overwriting files with cat
set -o noclobber
 
#stops ctrl+d from logging me out
set -o ignoreeof
 
#Treat undefined variables as errors
set -o nounset
 
if [ -f $HOME/.bash_profile.unprintable ]; then
  source $HOME/.bash_profile.unprintable
fi