-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpath_exports.bash
More file actions
70 lines (58 loc) · 2.25 KB
/
path_exports.bash
File metadata and controls
70 lines (58 loc) · 2.25 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
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
#!/usr/bin/env bash
# if [ -n "$__SOURCED_PATH_EXPORTS" ]; then return; fi
# echo "running path_exports"
export __SOURCED_PATH_EXPORTS=1
export LSP_USE_PLISTS=true
# This messes with nvm.
# export npm_config_prefix="${HOME}"/.node_modules
export RIPGREP_CONFIG_PATH="${HOME}"/dotfiles/ripgreprc
source "${HOME}"/dotfiles/path.sh
try_source "${HOME}"/dotfiles/pyenv.bash
prepend_to_path "${HOME}"/personal_scripts
prepend_to_path "${HOME}"/opt/bin
prepend_to_path "${HOME}"/.local/bin
prepend_to_path "${HOME}"/repositories/rmsd/rmsd
prepend_to_path "${HOME}"/opt/bin/scripts
# prepend_to_path "${HOME}"/.node_modules/bin
prepend_to_path "${HOME}"/go/bin
# prepend_to_path "${HOME}/.poetry/bin"
prepend_to_path "${PYENV_ROOT}/bin"
prepend_to_path "${HOME}/.cargo/bin"
prepend_to_path "${HOME}/.nimble/bin"
prepend_to_path "${HOME}/.juliaup/bin"
prepend_to_path "${HOME}/.luarocks/bin"
prepend_to_path "${HOME}/.pixi/bin"
prepend_to_path "${HOME}/.rbenv/bin"
prepend_to_path "${HOME}/.lmstudio/bin"
export apps="${HOME}"/opt/apps
hostname="$(hostname)"
if [[ "${hostname}" == "osmium" ]]; then
source /usr/share/lmod/lmod/init/zsh
module use "${HOME}/modules/osmium"
# TODO blergh
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python
export WORKON_HOME="${HOME}"/data/virtualenvs
export apps="${HOME}"/data/opt/apps
export PRE_COMMIT_HOME="${HOME}"/data/.pre-commit
export SPACK_ROOT="${HOME}"/data/spack
export VAGRANT_HOME="${HOME}"/data/.vagrant.d
elif [[ "${hostname}" == "s1096537" ]]; then
export SPACK_ROOT="${HOME}"/development/forks/spack
else
export PRE_COMMIT_HOME="${HOME}"/.cache/pre-commit
if [ -d "${HOME}"/development/personal/forks/spack ]; then
export SPACK_ROOT="${HOME}"/development/personal/forks/spack
else
export SPACK_ROOT="${HOME}"/repositories/spack
# export SPACK_ROOT="${HOME}"/development/forks/spack
fi
export VAGRANT_HOME="${HOME}"/.vagrant.d
fi
if [[ "$(uname)" == "Darwin" ]]; then
try_source /opt/homebrew/opt/lmod/init/zsh
fi
[[ -d "${SPACK_ROOT}" ]] && source "${SPACK_ROOT}"/share/spack/setup-env.sh
nix_daemon_path='/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
if [[ ! $(command -v nix) && -e ${nix_daemon_path} ]]; then
source ${nix_daemon_path}
fi