forked from mislav/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_profile
More file actions
46 lines (36 loc) · 1 KB
/
bash_profile
File metadata and controls
46 lines (36 loc) · 1 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
44
45
46
# vim:ft=sh:
if [ -r ~/.profile ]; then
source ~/.profile
fi
export CLICOLOR=1
export HISTCONTROL=ignoredups
export EDITOR=vim
export EVENT_NOKQUEUE=1
PATH=/usr/local/bin:"$PATH"
PATH=~/.rbenv/bin:"$PATH"
eval "$(rbenv init -)"
eval "$(nodenv init -)"
PATH=~/bin:"$PATH"
PATH=bin:"$PATH"
export PATH="$(consolidate-path "$PATH")"
bash_completion="$(brew --prefix 2>/dev/null)/etc/bash_completion"
if [ -r "$bash_completion" ]; then
source "$bash_completion"
fi
unset bash_completion
_git_prompt() {
local ref="$(command git symbolic-ref -q HEAD 2>/dev/null)"
echo "${ref:+ (${ref#refs/heads/})}"
}
_failed_status() {
[ "$PIPESTATUS" -ne 0 ] && printf "$"
}
_success_status() {
[ "$PIPESTATUS" -eq 0 ] && printf "$"
}
PS1='\[\e[0;31m\]\w\[\e[m\]$(_git_prompt) \[\e[1;31m\]$(_failed_status)\[\e[m\]$(_success_status) '
# Allow <C-s> to pass through to shell and programs
stty -ixon -ixoff
export GOPATH=~/p/go
# OPAM configuration
. /Users/mislav/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true