-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rvmrc
48 lines (39 loc) · 1.83 KB
/
.rvmrc
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
#!/bin/zsh
# /* vim: set filetype=sh : */
export PROJECT_NAME='prizzm'
export PROJECT_ROOT=`pwd`
export SETUP_DIR=${PROJECT_NAME}_setup
export SETUP_DIR_PATH=$PROJECT_ROOT/$SETUP_DIR
export RAILS_USE_POSTGRES=true
export URL=localhost:3000
# Activate shell substitutions for color output
source $SETUP_DIR_PATH/colors
# Load the secret API keys into the environment, that we don't want to store in
# source control
if [[ -s "$SETUP_DIR_PATH/secret-credentials" ]] ; then
echo "${info} * ${alert} Setting the environment variables listed in: ${info} ./$SETUP_DIR/secret-credentials ${txtrst}"
source $SETUP_DIR_PATH/secret-credentials
else
echo "${info} * ${warn} Error: Make sure to download the ${info} secret-credentials ${warn} file from ${bldylw}Sidney,
${warn} and place it in the ${info} ./$SETUP_DIR/ ${warn} directory ${txtrst}"
fi
# If we have already created a symlink to our custom githooks
if [[ -h ".git/hooks" ]] ; then
# do nothing.
echo "${info} * ${alert} Using custom git hooks in: ${info} ./$SETUP_DIR/git_hooks ${txtrst}"
else
#remove the git example hooks and create the symlink
rm -rf .git/hooks
ln -s ../$SETUP_DIR_PATH/git_hooks .git/hooks
echo "${info} * ${alert} Installing custom git hooks in: ${info} ./$SETUP_DIR/git_hooks ${txtrst}"
fi
# Load some useful shell aliases
echo "${info} * ${alert} Loading useful shell aliases from: ${info} ./$SETUP_DIR/aliases ${txtrst}"
source $SETUP_DIR_PATH/aliases
# Load other useful shell functions
echo "${info} * ${alert} Loading useful shell functions from: ${info} ./$SETUP_DIR/functions ${txtrst}"
source $SETUP_DIR_PATH/functions
# Allow access to other useful programs
echo "${info} * ${alert} Adding utilities directories to PATH: ${info} ./bin ${bldylw} and ${info} ./$SETUP_DIR/bin ${txtrst}"
export PATH=$PROJECT_ROOT/bin:$PATH
export PATH=$SETUP_DIR_PATH/bin:$PATH