-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
54 lines (40 loc) · 1.56 KB
/
.bash_profile
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
44
45
46
47
48
49
50
51
52
53
54
# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{aliases,bash_prompt,functions}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file"
done
unset file
# Case-insensitive globbing (used in pathname expansion)
shopt -s nocaseglob
# Append to the Bash history file, rather than overwriting it
shopt -s histappend
# Autocorrect typos in path names when using `cd`
shopt -s cdspell
# Prepend timestamps to bash history
export HISTTIMEFORMAT='%Y-%b-%d %a %H:%M:%S - '
export PS1='\t \u@\h:\w\$ '
# Enable some Bash 4 features when possible:
# * `autocd`, e.g. `**/qux` will enter `./foo/bar/baz/qux`
# * Recursive globbing, e.g. `echo **/*.txt`
for option in autocd globstar; do
shopt -s "$option" 2> /dev/null
done
# Add `killall` tab completion for common apps
complete -o "nospace" -W "Contacts Calendar Dock Finder iTunes Spotify SystemUIServer iTerm Tweetbot" killall
# use sublime to open gems
export BUNDLER_EDITOR=subl
# Add `~/bin` to the `$PATH`
export PATH="$HOME/bin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
( which hub > /dev/null ) && $(hub alias -s bash)
# Requires bash-completion (brew install bash-completion)
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
# Android SDK
export ANDROID_HOME=/usr/local/opt/android-sdk
## Added support for local rubies
# export PATH=$HOME/local/ruby/bin:$PATH
# This loads NVM
[[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh