blob: 0a67ae5f509bdc15e85dc56d6c8a6e0c7358cbfd (
plain) (
blame)
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
|
alias kontext="source kontext"
alias vim=vim_wrap
alias vimc="nvim ~/.dotfiles/public/nvim/.nvim"
# fucking hate brew, mac and all these fucking
# hacks and stupid workarounds
BREW_BIN="/opt/homebrew/bin/brew"
eval "$(${BREW_BIN} shellenv)"
export PATH="${HOMEBREW_PREFIX}/opt/gnu-getopt/bin:${PATH}"
export MANPATH="${HOMEBREW_PREFIX}/opt/gnu-getopt/share/man:${MANPATH}"
export PATH="${HOMEBREW_PREFIX}/opt/libpq/bin:${PATH}"
# other standard utilities like awk or sed
# have their own wrapper in ~/.usr/local/bin
# Brew
export HOMEBREW_BUNDLE_FILE="${HOME}/.brewfile"
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_ANALYTICS=1
export HOMEBREW_TEMP="/tmp"
export HOMEBREW_NO_INSTALL_FROM_API=1
# Krew
export PATH="${HOME}/.krew/bin:${PATH}"
# Rust
export PATH="${HOME}/.cargo/bin:${PATH}"
# Ruby
export GEM_HOME="$HOME/.gems"
export PATH="${GEM_HOME}/bin:${PATH}"
# NPM
export NPM_PACKAGES="${HOME}/.npm-packages"
export PATH="${NPM_PACKAGES}/bin:${PATH}"
export MANPATH="${MANPATH-$(manpath)}:$NPM_PACKAGES/share/man"
# Go
export GO111MODULE=on
export GOBIN="${HOME}/.go/bin"
export PATH="${GOBIN}:${PATH}"
# perlbrew
export PERLBREW_ROOT="${HOME}/perl5/perlbrew"
if [ -f ${PERLBREW_ROOT}/etc/bashrc ]; then
# cpan App::perlbrew && perlbrew init && \
# perlbrew install-patchperl && perlbrew install perl-5.34.0 && \
# perlbrew switch perl-5.34.0 && perlbrew install-cpanm
source ${PERLBREW_ROOT}/etc/bashrc
fi
# My local shit
export PATH="${HOME}/.local/bin:${PATH}"
export PATH="${HOME}/.usr/local/bin:${PATH}"
# Makes perl's Config aware of homebrew headers and libraries
# for stuff like ImageMagick. You can test that Config has this
# entries using something like this:
#
# use Config;
# print("usrinc: " . $Config{usrinc} . "\n");
# print("ldflags: " . $Config{ldflags} . "\n");
# print("lddflags: " . $Config{lddlflags} . "\n");
export PERLBREW_CONFIGURE_FLAGS="-Dusrinc=/opt/homebrew/include -Dldflags=-L/opt/homebrew/lib -de"
# Otherwise I get weird GPG errors when signing commits
#export GPG_TTY=$(tty)
# https://docs.brew.sh/Shell-Completion
FPATH="${HOMEBREW_PREFIX}/share/zsh/site-functions:${FPATH}"
source "${HOME}/.zshenv_cabify"
|