2023-01-05 17:22:50 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# This is my meta bashrc file, with oh-my-posh instead of zsh-specific
|
|
|
|
# oh-my-zsh, although I still use zsh as my default shell. Sorry for a
|
|
|
|
# lot of personal commentary and links hellscape here, it's there for
|
|
|
|
# in-code docs and for future me to not dig through 'git log' hell.
|
2023-09-03 14:51:35 +00:00
|
|
|
# SPDX-License-Identifier: MIT AND MPL-2.0
|
2023-01-05 17:22:50 +00:00
|
|
|
|
2024-04-13 11:25:23 +00:00
|
|
|
# shellcheck disable=SC2155
|
2023-01-05 17:22:50 +00:00
|
|
|
export GPG_TTY=$(tty)
|
2023-09-03 14:51:35 +00:00
|
|
|
|
2023-10-08 01:26:02 +00:00
|
|
|
# how about detecting local configs
|
|
|
|
if [ -f "$HOME/.config/localconfig.env" ]; then
|
|
|
|
. "$HOME/.config/localconfig.env"
|
|
|
|
fi
|
|
|
|
|
2024-01-16 07:45:57 +00:00
|
|
|
export DOTFILES_BIN="$HOME/bin"
|
2024-10-05 03:57:27 +00:00
|
|
|
|
|
|
|
# Golang
|
2023-01-05 17:22:50 +00:00
|
|
|
export GOPATH="$HOME/.local/share/go"
|
2024-08-17 06:34:58 +00:00
|
|
|
export PATH="${GOPATH}/bin:${PATH}"
|
2023-01-05 17:22:50 +00:00
|
|
|
# Context: https://git.sr.ht/~sircmpwn/dotfiles/tree/master/item/.profile#L13-15
|
|
|
|
# and https://drewdevault.com/2021/08/06/goproxy-breaks-go.html
|
|
|
|
export GOPROXY=direct GOSUMDB=off
|
2024-10-05 03:57:27 +00:00
|
|
|
|
|
|
|
# Use nano by default
|
|
|
|
export EDITOR=nano VISUAL=nano
|
|
|
|
|
2023-08-22 17:01:58 +00:00
|
|
|
# nix profile install nixpkgs#glibcLocale
|
|
|
|
export LOCALE_ARCHIVE="$HOME/.nix-profile/lib/locale/locale-archive"
|
2024-01-16 07:45:57 +00:00
|
|
|
export PATH="${DOTFILES_BIN}:${GOPATH}/bin:${HOME}/.local/bin:${PATH}"
|
2023-01-05 17:22:50 +00:00
|
|
|
|
2024-10-05 03:57:27 +00:00
|
|
|
# bashbox
|
2023-01-05 17:22:50 +00:00
|
|
|
if [[ -d "$HOME/.bashbox" ]]; then
|
2024-04-13 11:25:23 +00:00
|
|
|
# shellcheck disable=SC1091
|
2023-01-05 17:22:50 +00:00
|
|
|
source "$HOME/.bashbox/env"
|
|
|
|
fi
|
|
|
|
|
2024-10-05 03:57:27 +00:00
|
|
|
# load the meta bashrc and the rest
|
2024-08-17 06:34:58 +00:00
|
|
|
source "$HOME/.config/bash/bashrc"
|