forked from aziz/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_profile
76 lines (59 loc) · 2.53 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
# Notes: ---------------------------------------------------------------------------
#
# When you start an interactive shell (log in, open terminal or iTerm in OS X,
# create a new tab in iTerm) the following files are read and run, in this order:
# * profile
# * bashrc
# * .bash_profile
# * .bashrc (only because this file is run (sourced) in .bash_profile)
#
# When an interactive shell, that is not a login shell, is started
# (when you run "bash" from inside a shell, or when you start a shell in
# xwindows [xterm/gnome-terminal/etc] ) the following files are read and executed,
# in this order:
# * bashrc
# * .bashrc
#
# ----------------------------------------------------------------------------------
# Node
export NODE_PATH="/usr/local/lib/node_modules"
# Go
export GOPATH=$HOME/go
export DOCKER_HOST=tcp://localhost:4243
export PATH="$HOME/.cask/bin:/usr/local/heroku/bin:/usr/local/clang/bin:/usr/local/bin:/usr/local/sbin:/usr/local/share/npm/bin:$HOME/.bin:$GOPATH/bin:$HOME/.rvm/bin:$PATH"
# Set my editor and git editor
export EDITOR="vim"
export GEM_EDITOR="subl3"
export BUNDLER_EDITOR="subl3"
# export GIT_EDITOR="vim"
# Path to the bash it configuration
export BASH=$HOME/.bash
# Lock and Load a custom theme file from /.bash/themes/
export BASH_THEME='mine'
# Change this to your console based IRC client of choice.
# export IRC_CLIENT='irssi'
# Setting for the new UTF-8 terminal support in Lion
export LANG="en_US.UTF-8"
export LANGUAGE="en_US"
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# Fixing gcc in lion
export CC=/usr/bin/gcc #gcc-4.2
export CVS_RSH="ssh"
#export CDPATH=:..:~:~/projects:~/Dropbox:~/Dropbox/projects
# Identify OS and Machine
export OS=`uname -s | sed -e 's/ *//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
export OSVERSION=`uname -r`; OSVERSION=`expr "$OSVERSION" : '[^0-9]*\([0-9]*\.[0-9]*\)'`
export MACHINE=`uname -m | sed -e 's/ *//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
export PLATFORM="$MACHINE-$OS-$OSVERSION"
# Set iTerm tab/window name to the current directory
export PROMPT_COMMAND='echo -ne "\033]0;${PWD##*/}\007"'
# Load Bash It
source $BASH/bash_it.sh
source $BASH/secrets.sh
# Don't check mail when opening terminal.
unset MAILCHECK
# [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# Starting ssh-agent if it's not already started. fix a problem in MacOS Lion 10.7.x
if [ "x`ps ax |grep [s]sh-agent`" == "x" ]; then ssh-agent && ssh-add; fi