forked from aziz/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_profile
79 lines (62 loc) · 2.54 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
77
78
79
#!/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
#
# ----------------------------------------------------------------------------------
# Add rvm gems and nginx to the path
export PATH="/usr/local/clang/bin:/usr/local/share/python:/usr/local/bin:/usr/local/sbin:$HOME/.bin:/usr/local/share/npm/bin:$HOME/.rvm/bin:$PATH"
# Node
export NODE_PATH="/usr/local/lib/node_modules"
# Path to the bash it configuration
export BASH=$HOME/.bash
# Lock and Load a custom theme file from /.bash/themes/
export BASH_THEME='mine'
# Set my editor and git editor
export EDITOR="vim"
export GIT_EDITOR="vim"
export GEM_EDITOR="subl"
# 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"
# Load Bash It
source $BASH/bash_it.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 ~/.ssh/id_rsa; fi
# FIX ME...add it to completion folder
# {{{
# Node Completion - Auto-generated, do not touch.
shopt -s progcomp
for f in $(command ls ~/.node-completion); do
f="$HOME/.node-completion/$f"
test -f "$f" && . "$f"
done
# }}}