#!/bin/sh

export EDITOR=vi
export VISUAL="$EDITOR"
export BROWSER=firefox
export INPUTRC="$HOME/.config/bash/inputrc"
export RLWRAP_HOME="$HOME/.cache/rlwrap"

export BORG_REMOTE_PATH='borg1'
export BORG_PASSCOMMAND='pass show Usurpador/borg/passphrase'

export GOPATH="$HOME/dev/go"
export CFLAGS='-std=c99 -Wall -Wextra -Wpedantic -g -flto -Werror'
export CC=musl-gcc
export AR=gcc-ar
export LEX=flex
export LDFLAGS='-flto'
MAKEFLAGS="-j$(nproc)"
export MAKEFLAGS
export NIXPREFIX='/run/current-system/sw'
export PREFIX="$HOME/.p"
export C_INCLUDE_PATH="$PREFIX/include:$NIXPREFIX/include/:${C_INCLUDE_PATH:-}"
export LIBRARY_PATH="$PREFIX/lib:$NIXPREFIX/lib/:${LIBRARY_PATH:-}"
export INFOPATH="$PREFIX/share/info:$HOME/.config/guix/current/share/info:$INFOPATH"
export MANPATH="$PREFIX/share/man:$(manpath -q)"
export LISP='sbcl --eval'

export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
. ~/.guix-profile/etc/profile
GUIX_PROFILE= . ~/.config/guix/current/etc/profile

PATH="$HOME/.p/bin:$HOME/.local/bin:$HOME/tmp/bin:$HOME/dev/libre/website/bin:$HOME/dev/others/dinheiros:$DOTFILES/src/bin:$HOME/dev/libre/eutils/src/impls/sh:$DOTFILES/xmonad/scripts:$DOTFILES/cron:$DOTFILES/cron/generated:$HOME/annex/bin/scripts:$PATH"
