-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.profile
118 lines (101 loc) · 3.83 KB
/
.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# Add pyenv (needed before .bashrc)
if [ -d "${HOME}/.pyenv/bin" ]; then
export PYENV_ROOT="${HOME}/.pyenv"
export PATH="${PYENV_ROOT}/bin:${PATH}"
# Place pyenv shims on path
if [[ ":${PATH}:" != *":$(pyenv root)/shims:"* ]]; then
eval "$(pyenv init --path)"
fi
fi
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
# User added
# Add pyenv-virtualenv
if [ -d "${HOME}/.pyenv/plugins/pyenv-virtualenv" ]; then
# Place pyenv-virtualenv shims on path
if [[ ":${PATH}:" != *":$(pyenv root)/plugins/pyenv-virtualenv/shims:"* ]]; then
eval "$(pyenv virtualenv-init -)"
fi
fi
# Add TeX Live to PATH
# For tlmgr support if `tlmgr init-usertree` isn't enough run:
# sudo chown -R "${USER}" /usr/local/texlive
if [ -d "/usr/local/texlive/2020/bin/x86_64-linux" ] ; then
PATH="/usr/local/texlive/2020/bin/x86_64-linux:$PATH"
fi
if [ -d "/usr/local/texlive/2020/texmf-dist/doc/man" ] ; then
MANPATH="/usr/local/texlive/2020/texmf-dist/doc/man:$MANPATH"
fi
if [ -d "/usr/local/texlive/2020/texmf-dist/doc/info" ] ; then
INFOPATH="/usr/local/texlive/2020/texmf-dist/doc/info:$INFOPATH"
fi
# Add ROOT to PATH
# c.f. ~/build_src for build history
if [ -d "${HOME}/bin/root-cern/bin" ] ; then
. "${HOME}/bin/root-cern/bin/thisroot.sh"
fi
# Add CUDA Toolkit 10.1 to PATH
# /usr/local/cuda-10.1 should be a symlink to /usr/lib/cuda
if [ -d "/usr/local/cuda-10.1/bin" ]; then
PATH="/usr/local/cuda-10.1/bin:${PATH}"; export PATH;
elif [ -d "/usr/lib/cuda/bin" ]; then
PATH="/usr/lib/cuda/bin:${PATH}"; export PATH;
fi
# Add cuDNN to LD_LIBRARY_PATH
# /usr/local/cuda should be a symlink to /usr/lib/cuda
if [ -d "/usr/local/cuda/lib64" ]; then
LD_LIBRARY_PATH="/usr/local/cuda/lib64:${LD_LIBRARY_PATH}"; export LD_LIBRARY_PATH;
elif [ -d "/usr/lib/cuda/lib64" ]; then
LD_LIBRARY_PATH="/usr/lib/cuda/lib64:${LD_LIBRARY_PATH}"; export LD_LIBRARY_PATH;
fi
# Added by cpan
if [ -d "/home/${USER}/perl5" ]; then
PATH="/home/${USER}/perl5/bin${PATH:+:${PATH}}"; export PATH;
PERL5LIB="/home/${USER}/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/home/${USER}/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"/home/${USER}/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/home/${USER}/perl5"; export PERL_MM_OPT;
fi
# Add Bazel support
if [ -d "/home/${USER}/bin" ]; then
PATH="/home/${USER}/bin${PATH:+:${PATH}}"; export PATH;
fi
if [ -d "/home/${USER}/.bazel/bin" ]; then
. "/home/${USER}/.bazel/bin/bazel-complete.bash"
fi
# Add Rust
if [ -d "${HOME}/.cargo/bin" ]; then
PATH="${HOME}/.cargo/bin${PATH:+:${PATH}}"; export PATH;
fi
# Add Julia
if [ -d "${HOME}/bin/julia/julia-1.5.3/bin/" ]; then
PATH="${HOME}/bin/julia/julia-1.5.3/bin${PATH:+:${PATH}}"; export PATH;
fi
# Add rbenv
if [ -d "${HOME}/.rbenv/bin" ]; then
PATH="${HOME}/.rbenv/bin${PATH:+:${PATH}}"; export PATH;
eval "$(rbenv init -)"
fi
# Ensure LD_LIBRARY_PATH exists if application unsets it
_PRESERVE_LD_LIBRARY_PATH="${LD_LIBRARY_PATH}"; export _PRESERVE_LD_LIBRARY_PATH;