-
Notifications
You must be signed in to change notification settings - Fork 1
/
bash_profile
executable file
·35 lines (29 loc) · 1.01 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
echo "starting bash_profile.."
# make a temp folder (ensure delete before logoff)
cd /cygdrive/c/Users/$USER/AppData/
mkdir -p tmp
# navigate to bin folder
cd /cygdrive/r/$USER/bin/
# set up paths for required tools
alias vim="/cygdrive/c/Program\ Files\ \(x86\)/Vim/vim81/vim.exe"
R_FILE=/cygdrive/c/Program\ Files/R/R-3.5.2/bin/Rscript.exe
if ! test -f "$R_FILE"; then
alias Rscript="/cygdrive/c/Program\ Files/R/R-3.6.1/bin/Rscript.exe"
else
alias Rscript="/cygdrive/c/Program\ Files/R/R-3.5.2/bin/Rscript.exe"
fi
# aliases
alias python="/cygdrive/c/Program\ Files/Python35/python/" #alias python="/cygdrive/c/Python27/python.exe"
alias bin="cd /cygdrive/r/$USER/bin/"
alias tmp="cd /cygdrive/c/Users/$USER/AppData/tmp/"
export PATH="$PATH:/cygdrive/r/$USER/bin"
# test if programs built
FILE=/cygdrive/r/$USER/bin/csv_slice.exe
if ! test -f "$FILE"; then
echo "setting up command line utilities.."
./setup.sh
else
echo "command line utils already set up.."
fi
# goto temp folder
cd /cygdrive/c/Users/$USER/AppData/tmp/