-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcore.sh
68 lines (50 loc) · 1.28 KB
/
core.sh
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
#!/bin/bash
if [ "${_DEFAULTS_SOURCED}" = "1" ]; then
return
fi
export LANG=en_US.UTF-8
export DOTFILES_DIR="${HOME}/.dotfiles"
if [ -d "/opt/homebrew/bin" ]; then
export PATH=/opt/homebrew/bin:${PATH}
fi
if [ -d "/opt/homebrew/sbin" ]; then
export PATH=/opt/homebrew/sbin:${PATH}
fi
if [ -d "${HOME}/.local/bin" ]; then
export PATH=${HOME}/.local/bin:${PATH}
fi
if [ -d "${HOME}/.bin" ]; then
export PATH=${HOME}/.bin:${PATH}
fi
if [ -d "${HOME}/bin" ]; then
export PATH=${HOME}/bin:${PATH}
fi
if [ -d "${HOME}/.rd/bin/" ]; then
export PATH=${HOME}/.rd/bin/:${PATH}
fi
if [ -f "${HOME}/.secret_env.sh" ]; then
# shellcheck disable=1091
source "${HOME}/.secret_env.sh"
fi
export EDITOR=nvim
export GIT_SSH=ssh
# mise
export MISE_USE_TOML=1
export MISE_EXPERIMENTAL=1
export MISE_PIPX_UVX=1
# perl
export PERL_LOCAL_LIB_ROOT="${HOME}/.local/perl"
# pip
export PIP_REQUIRE_VIRTUALENV=true
# riggrep
export RIPGREP_CONFIG_PATH="${HOME}/.dotfiles/rg/ripgreprc"
# python
export PYTHON_CFLAGS="-march=native -mtune=native"
export PYTHON_CONFIGURE_OPTS="--enable-shared --enable-optimizations --with-lto"
function bootstrap() { (
set -e
cd "${DOTFILES_DIR}"
git pull origin master || true
bash "${DOTFILES_DIR}/bootstrap.sh" "${@}" || return 1
); }
export _DEFAULTS_SOURCED="1"