forked from anishathalye/dotfiles_template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenv
85 lines (65 loc) · 3.25 KB
/
env
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
80
81
82
83
## JAVA
export JRE_HOME=/usr/lib/jvm/java-11-openjdk-amd64/jre/bin/java
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
export CATALINA_HOME="/usr/share/tomcat7"
export CATALINA_BASE="/var/lib/tomcat7"
#############################
# MATLAB
##############################
#export LD_LIBRARY_PATH=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v716/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v716/sys/os/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v716/sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v716/sys/java/jre/glnxa64/jre/lib/amd64/server:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v716/sys/java/jre/glnxa64/jre/lib/amd64
#MCR matlab library path
#export XAPPLRESDIR=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v716/X11/app-defaults
MCR_ROOT="/opt/MATLAB/MATLAB_Runtime/v95"
MCR_APPS="$MCR_ROOT/bin:$MCR_ROOT/glnxa64"
MATLAB_PATH=/opt/MATLAB/R2018b/bin
export MESA_LOADER_DRIVER_OVERRIDE=i965
##############################
# Various
##############################
# cheat sheet - see github repo https://github.com/chrisallenlane/cheat
export CHEATCOLORS=true
export CHEATPATH='$HOME/.cheat'
if command -v nvim > /dev/null; then export EDITOR=nvim; else export EDITOR='vim'; fi
if [ -d $HOME/github_repo ]; then
export GITHUB_DIR=$HOME/github_repo
export CHEF_DIR="$GITHUB_DIR/chef"
export DATA_SERVICES_DIR="$GITHUB_DIR/chef/src/data-services"
export WIP_DIR="/tmp/WIP_DIR/"
export INCOMING_DIR="/tmp/INCOMING_DIR/"
export ERROR_DIR="/tmp/ERROR_DIR/"
export PYTHONPATH=$DATA_SERVICES_DIR/lib/python
fi
export ANSIBLE_PATH=$GITHUB_DIR/ansible_laptop
##############################
# set DOTFILES_PATH env
##############################
if [ -d $HOME/github_repo/dotfiles ];then # on local computer
export DOTFILES_PATH=$HOME/github_repo/dotfiles
elif [ -d $HOME/dotfiles >/dev/null ]; then # on any $HOME folder, the dotfiles repo should be clone to $HOME/dotfiles
export DOTFILES_PATH=$HOME/dotfiles
fi
if [ -d $HOME/github_repo/dotfiles_private ];then # on local computer
export DOTFILES_PRIVATE_PATH=$HOME/github_repo/dotfiles_private
elif [ -d $HOME/dotfiles_private >/dev/null ]; then # on any $HOME folder, the dotfiles_private repo should be clone to $HOME/dotfiles_private
export DOTFILES_PRIVATE_PATH=$HOME/dotfiles_private
fi
#export PATH="${PATH}:${MCR_APPS}:${JAVA_HOME}/bin:${MATLAB_PATH}:${HOME}/.dotfiles/bin:${HOME}/.dotfiles/bin/encryption:${HOME}/usr/bin:/snap/bin"
## add jetbrains
##JETBRAINS_PATH=`find $HOME/bin/ -maxdepth 2 -type d -name 'jetbrains-toolbox*'`
##export PATH=$JETBRAINS_PATH:$PATH
#unalias fd >/dev/null 2>/dev/null # in order to use https://github.com/sharkdp/fd
PYCHARM_BIN_PATH=/home/lbesnard/.local/share/JetBrains/Toolbox/apps/PyCharm-C/ch-0/221.5787.24/bin/pycharm.sh
[[ ! -f $PYCHARM_BIN_PATH ]] && PYCHARM_BIN_PATH=`fd -aHL --type f pycharm.sh ~/.local/`
[[ ! -z $PYCHARM_BIN_PATH ]] && PYCHARM_PATH=$(dirname $PYCHARM_BIN_PATH) #&& export PATH="$PYCHARM_PATH:${PATH}"
# Terminal
if ! command -v alacritty &> /dev/null;
then TERMINAL='';
else
export TERMINAL=alacritty;
fi
export DOCKER_CONFIG_DIR=/opt/docker_config
export PYTHONBREAKPOINT=ipdb.set_trace
# BROWSER
if command -v opera > /dev/null; then
export BROWSER=opera
fi