Select the types of activity you want to include in your feed.
Personal dotfiles for Linux, mostly for Nixpkgs/NixOS-based and Termux setups. Mirrored using GitLab's push mirroring feature.
gitlab.com/andreijiroh-dev/dotfiles
···66# in-code docs and for future me to not dig through 'git log' hell.
77# SPDX-License-Identifier: MIT AND MPL-2.0
8899-## Stage 0: Init keychain + GPG_TTY for pinentry hellscapes in TUI. ##
1010-## This stage also initalizes oh-my-posh or custom
1111-## PSI here. ##
1212-if [[ $TERMUX ]]; then
1313- export SSH_AGENT_=todo
1414-elif command -v keychain >> /dev/null; then
1515- # shellcheck disable=SC2155
1616- export KEYCHAIN_PATH=$(command -v keychain)
1717- eval $(keychain --agents gpg,ssh --eval)
1818-fi
199# shellcheck disable=SC2155
2010export GPG_TTY=$(tty)
2111···2414 . "$HOME/.config/localconfig.env"
2515fi
26162727-## Stage 1: Init custom vars and shortcuts before anything else ##
2828-## Note that ~/.env and ~/.env.local should be loaded eariler on ##
2929-# Dotfiles stuff, maybe should be on ~/.env?
3030-#export DOTFILES_HOME="$HOME/.dotfiles"
3117export DOTFILES_BIN="$HOME/bin"
3232-# gopath should be on ~/.local/share/go to not fuck up with local install
3333-# at ~/go if exists
1818+1919+# Golang
3420export GOPATH="$HOME/.local/share/go"
3521export PATH="${GOPATH}/bin:${PATH}"
3636-# Shut up, VS Code (not the OSS distributions off github:microsoft/vscode).
3737-# Don't let me pay for JetBrains IDEs or go nuts with nvim (or emacs, since
3838-# I'm both a bit neutral and off the rails at Vim vs Emacs debate). Also RIP
3939-# to my first editor after Notepad that started my web dev + Linux journey,
4040-# Atom (https://github.com/atom).
4141-export EDITOR=nano
4222# Context: https://git.sr.ht/~sircmpwn/dotfiles/tree/master/item/.profile#L13-15
4323# and https://drewdevault.com/2021/08/06/goproxy-breaks-go.html
4424export GOPROXY=direct GOSUMDB=off
2525+2626+# Use nano by default
2727+export EDITOR=nano VISUAL=nano
2828+4529# nix profile install nixpkgs#glibcLocale
4630export LOCALE_ARCHIVE="$HOME/.nix-profile/lib/locale/locale-archive"
4731export PATH="${DOTFILES_BIN}:${GOPATH}/bin:${HOME}/.local/bin:${PATH}"
48324949-## Stage 2: Source literally everything else ##
3333+# bashbox
5034if [[ -d "$HOME/.bashbox" ]]; then
5135 # shellcheck disable=SC1091
5236 source "$HOME/.bashbox/env"
5337fi
54383939+# load the meta bashrc and the rest
5540source "$HOME/.config/bash/bashrc"
+15
.config/bash/autoloader.bashrc
···11+#!/usr/bin/env bash
22+33+for file in "${HOME}"/.config/bash/tools/*.bashrc; do
44+ if [ "$file" == "${HOME}/.config/bash/tools/automated-deploy.bashrc" ]; then
55+ [[ $DEBUG != "" ]] && echo "avoiding source loop, skipping $file"
66+ else
77+ [[ $DEBUG != "" ]] && echo "[tools] sourcing $file"
88+ source "$file"
99+ fi
1010+done
1111+1212+for file in "${HOME}"/.config/bash/completions/*.bash; do
1313+ [[ $DEBUG != "" ]] && echo "[shell-completions] sourcing $file"
1414+ source "$file"
1515+fi
+2-3
.config/bash/bashrc
···5151 fi
5252fi
53535454-# If this is an xterm set the title to user@host:dir
5454+# shell prompts
5555if command -v oh-my-posh >>/dev/null && [[ $FF_USE_OHMYPOSH != "false" ]]; then
5656 eval "$(oh-my-posh init bash)"
5757else
···7272# You may want to put all your additions into a separate file like
7373# ~/.bash_aliases, instead of adding them here directly.
7474# See /usr/share/doc/bash-doc/examples in the bash-doc package.
7575-7675source "${HOME}/.config/bash/aliases"
7777-source "${HOME}/.config/bash/tools/automated-deploy.bashrc"
7876source "${HOME}/.config/bash/functions"
7777+source "${HOME}/.config/bash/autoloader.bashrc"
79788079# enable programmable completion features (you don't need to enable
8180# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
-10
.config/bash/tools/automated-deploy.bashrc
···11-#!/usr/bin/env bash
22-33-for file in "${HOME}"/.config/bash/tools/*.bashrc; do
44- if [ "$file" == "${HOME}/.config/bash/tools/automated-deploy.bashrc" ]; then
55- [[ $DEBUG != "" ]] && echo "avoiding source loop, skipping $file"
66- else
77- [[ $DEBUG != "" ]] && echo "sourcing $file"
88- source "$file"
99- fi
1010-done