-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetEnv.sh
More file actions
executable file
·38 lines (31 loc) · 1.04 KB
/
setEnv.sh
File metadata and controls
executable file
·38 lines (31 loc) · 1.04 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
#!/bin/bash
# Update path:
if [ -n "$PATH" ]; then
PATH=`pwd`/mit_linux:`pwd`/fsmcontroller:`pwd`/clm:${PATH}
else
PATH=`pwd`/mit_linux:`pwd`/fsmcontroller:`pwd`/clm
fi
# Update library path (different for mac and linux...):
OS=`uname`
# It would be nice to do this more elegantly...
if [[ "$OS" == 'Darwin' ]]; then
echo "You're on a mac! So your dynamic library variable is: DYLD_LIBRARY_PATH"
if [ -n "$DYLD_LIBRARY_PATH" ]; then
$DYLD_LIBRARY_PATH=`pwd`/predictiveFilter:`pwd`/Centroid:${$DYLD_LIBRARY_PATH}
else
export DYLD_LIBRARY_PATH=`pwd`/predictiveFilter:`pwd`/Centroid
fi
else
if [ -n "$LD_LIBRARY_PATH" ]; then
$LD_LIBRARY_PATH=`pwd`/predictiveFilter:`pwd`/Centroid:${$LD_LIBRARY_PATH}
else
export LD_LIBRARY_PATH=`pwd`/predictiveFilter:`pwd`/Centroid
fi
fi
# Ipython Notebook Set-up:
export IPYTHONDIR=`pwd`/ipython
alias gs="git status"
alias gb="git branch -v"
alias gcm="git commit -m"
alias gpullom="git pull origin master"
alias gpushom="git push origin master"