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
···2424 . "$HOME/.config/localconfig.env"
2525fi
26262727-if command -v oh-my-posh >>/dev/null && [[ $FF_USE_OHMYPOSH != "false" ]]; then
2828- eval "$(oh-my-posh init bash)"
2929-else
3030- if [[ $PROMPT_THEME == "disabled" ]]; then
3131- true
3232- elif [[ -f "$HOME/.config/bash/shell-prompts/${PROMPT_THEME}.bashrc" ]]; then
3333- # shellcheck disable=SC1090
3434- source "$HOME/.config/bash/shell-prompts/${PROMPT_THEME}.bashrc"
3535- else
3636- source "$HOME/.config/bash/shell-prompts/vern.bashrc"
3737- fi
3838-fi
3939-4027## Stage 1: Init custom vars and shortcuts before anything else ##
4128## Note that ~/.env and ~/.env.local should be loaded eariler on ##
4229# Dotfiles stuff, maybe should be on ~/.env?
···4532# gopath should be on ~/.local/share/go to not fuck up with local install
4633# at ~/go if exists
4734export GOPATH="$HOME/.local/share/go"
3535+export PATH="${GOPATH}/bin:${PATH}"
4836# Shut up, VS Code (not the OSS distributions off github:microsoft/vscode).
4937# Don't let me pay for JetBrains IDEs or go nuts with nvim (or emacs, since
5038# I'm both a bit neutral and off the rails at Vim vs Emacs debate). Also RIP
···6351 source "$HOME/.bashbox/env"
6452fi
65536666-# Formerly: handle hostname generation for importing host-specific configs
6767-# TODO: Handle detection across distributions without chaos, especially where
6868-# Nix is installed (not NixOS)
6969-if [[ $WSL_DISTRO_NAME ]] && [[ $WSL_INTEROP ]]; then
7070- HOSTNAME_BASH="$(cat /etc/hostname)-wsl-${WSL_DISTRO_NAME}"
7171- export WSL=1 # similar to CODESPACES and GITPOD_WORKSPACE_ID vars
7272-else
7373- HOSTNAME_BASH="$(cat /etc/hostname)"
7474-fi
7575-export HOSTNAME_BASH
7676-7777-for file in "$HOME/.config/bash/hosts/${HOSTNAME_BASH}.bashrc" "${HOME}/.config/bash/bashrc"; do
7878- # shellcheck disable=SC1090
7979- [ -f "$file" ] && . "$file"
8080-done
5454+source "$HOME/.config/bash/bashrc"
+19-11
.config/bash/bashrc
···33# for examples
4455# If not running interactively, don't do anything
66-#case $- in
77-# *i*) ;;
88-# *) return;;
99-#esac
66+case $- in
77+ *i*) ;;
88+ *) return;;
99+esac
10101111# don't put duplicate lines or lines starting with space in the history.
1212# See bash(1) for more options
···5252fi
53535454# If this is an xterm set the title to user@host:dir
5555-case "$TERM" in
5656-xterm*|rxvt*)
5757- PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
5858- ;;
5959-*)
6060- ;;
6161-esac
5555+if command -v oh-my-posh >>/dev/null && [[ $FF_USE_OHMYPOSH != "false" ]]; then
5656+ eval "$(oh-my-posh init bash)"
5757+else
5858+ if [[ $PROMPT_THEME == "disabled" ]]; then
5959+ true
6060+ elif [[ -f "$HOME/.config/bash/shell-prompts/${PROMPT_THEME}.bashrc" ]]; then
6161+ # shellcheck disable=SC1090
6262+ source "$HOME/.config/bash/shell-prompts/${PROMPT_THEME}.bashrc"
6363+ else
6464+ source "$HOME/.config/bash/shell-prompts/vern.bashrc"
6565+ fi
6666+fi
62676368# colored GCC warnings and errors
6469export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
···8287 . /etc/bash_completion
8388 fi
8489fi
9090+9191+[ -f "${HOME}/.config/bash/hosts/${HOSTNAME_BASH}.bashrc" ] \
9292+ && . "${HOME}/.config/bash/hosts/${HOSTNAME_BASH}.bashrc"
+3-1
.profile
···2727 PATH="$HOME/.local/bin:$PATH"
2828fi
29293030-export PATH="/usr/local/bin:$HOME/.local/bin:$HOME/bin${PATH:+:}$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts" # ~vern specifics and more
3030+# Add $GOPATH/bin into PATH
3131+export GOPATH="$HOME/.local/share/go"
3232+export PATH="$GOPATH/bin:$PATH"
3133mesg n 2> /dev/null || true
32343335# then import the rest