diff options
Diffstat (limited to 'public/zsh/.zshenv')
-rw-r--r-- | public/zsh/.zshenv | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/public/zsh/.zshenv b/public/zsh/.zshenv new file mode 100644 index 0000000..aa7b60e --- /dev/null +++ b/public/zsh/.zshenv @@ -0,0 +1,74 @@ +alias kontext="source kontext" +alias vim=vim_wrap +alias docker=podman + +# 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" |