Personal dotfiles for Linux, mostly for Nixpkgs/NixOS-based and Termux setups. Mirrored using GitLab's push mirroring feature.
gitlab.com/andreijiroh-dev/dotfiles
···2020 . "$HOME/.config/localconfig.env"
2121fi
22222323-# Load bash
2424-# shellcheck source=./.bashrc
2525-source ./.bashrc
2323+export DOTFILES_BIN="${HOME}/bin"
2424+# gopath should be on ~/.local/share/go to not fuck up with local insta>
2525+# at ~/go if exists
2626+export GOPATH="$HOME/.local/share/go"
2727+# Context: https://git.sr.ht/~sircmpwn/dotfiles/tree/master/item/.profi>
2828+# and https://drewdevault.com/2021/08/06/goproxy-breaks-go.html
2929+export GOPROXY=direct GOSUMDB=off
3030+export PATH="${DOTFILES_BIN}:${GOPATH}/bin:${HOME}/.local/bin:${PATH}"
26312727-# set PATH so it includes user's private bin if it exists
2828-if [ -d "$HOME/bin" ] ; then
2929- PATH="$HOME/bin:$PATH"
3030-fi
3131-3232-# set PATH so it includes user's private bin if it exists
3333-if [ -d "$HOME/.local/bin" ] ; then
3434- PATH="$HOME/.local/bin:$PATH"
3535-fi
3636-3737-export PATH="/usr/local/bin:$HOME/.local/bin:$HOME/bin${PATH:+:}$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts" # ~vern specifics and more
3838-mesg n 2> /dev/null || true
3939-4040-# then import the rest
4141-source "$HOME/.env"
4242-source "$HOME/.config/aliases"
4343-export POSIX_PROFILE_SOURCED=true
4444-4545-# how about detecting local configs
4646-if [ -f "$HOME/.config/localconfig.env" ]; then
4747- . "$HOME/.config/localconfig.env"
4848-fi
4949-5050-##########################################################################################
5151-# Code snippets from https://git.sr.ht/~sircmpwn/dotfiles/tree/db5945a4/item/.env
5252-##########################################################################################
5353-if ls --version 2>&1 | grep -i gnu >/dev/null
5454-then
5555- alias ls='ls --color=auto '
5656-elif ls --version 2>&1 | grep -i busybox >/dev/null
5757-then
5858- alias ls='ls --color=auto '
5959-fi
6060-6161-alias recent='ls -ltch'
6262-6363-# Add optmizations for multicore builds
6464-if [ $(uname) = "Linux" ]
6565-then
6666- nproc=$(grep '^processor' /proc/cpuinfo | wc -l)
6767- if [ $nproc -gt 4 ]
6868- then
6969- # Reserve two cores
7070- nproc=$((nproc - 2))
7171- fi
7272- export MAKEFLAGS="-j$nproc"
7373- export SAMUFLAGS="-j$nproc"
7474-fi
7575-##########################################################################################
3232+_byobu_sourced=1 . /usr/bin/byobu-launch 2>/dev/null || true
+2-1
.bashrc
···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"
3131-export DOTFILES_BIN="$DOTFILES_HOME/bin"
3131+export DOTFILES_BIN="$HOME/bin"
3232# gopath should be on ~/.local/share/go to not fuck up with local install
3333# at ~/go if exists
3434export GOPATH="$HOME/.local/share/go"
···4444export GOPROXY=direct GOSUMDB=off
4545# nix profile install nixpkgs#glibcLocale
4646export LOCALE_ARCHIVE="$HOME/.nix-profile/lib/locale/locale-archive"
4747+export PATH="${DOTFILES_BIN}:${GOPATH}/bin:${HOME}/.local/bin:${PATH}"
47484849## Stage 2: Source literally everything else ##
4950if [[ -d "$HOME/.bashbox" ]]; then
+1
.config/gh/config.yml
···2020http_unix_socket:
2121# What web browser gh should use when opening URLs. If blank, will refer to environment.
2222browser:
2323+version: "1"
···1717 fi
1818fi
19192020-# set PATH so it includes user's private bin if it exists
2121-if [ -d "$HOME/bin" ] ; then
2222- PATH="$HOME/bin:$PATH"
2323-fi
2424-2525-# set PATH so it includes user's private bin if it exists
2626-if [ -d "$HOME/.local/bin" ] ; then
2727- PATH="$HOME/.local/bin:$PATH"
2828-fi
2929-3030-# Add $GOPATH/bin into PATH
3131-export GOPATH="$HOME/.local/share/go"
3232-export PATH="$GOPATH/bin:$PATH"
2020+export PATH="/usr/local/bin::$HOME/bin:$HOME/.local/bin:$HOME/bin${PATH:+:}$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts" # ~vern specifics and more
3321mesg n 2> /dev/null || true
34223523# then import the rest