Personal dotfiles for Linux, mostly for Nixpkgs/NixOS-based and Termux setups. Mirrored using GitLab's push mirroring feature. gitlab.com/andreijiroh-dev/dotfiles
linux dotfiles
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update shellrc files as well as global git config

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>

+31 -17
+10 -8
.bash_login
··· 1 1 #!/usr/bin/env bash 2 2 3 - export HOST_SPECIFIC_BASHRC_PATH="$HOME/.config/$HOSTNAME.bashrc" 4 - 5 3 # Stage 0: Source dotenv stuff from homedir 6 4 source "$HOME/.env" 7 5 if [[ -f "$HOME/.env.local" ]]; then ··· 9 7 LOCAL_DOTENV_LOADED=true 10 8 fi 11 9 12 - # Stage 1: Source the ~/.profile 13 - source "$HOME/.profile" 10 + if [[ $TERMUX ]]; then 11 + export SSH_AGENT_=todo 12 + elif command -v keychain >> /dev/null; then 13 + export KEYCHAIN_PATh=$(command -v keychain) 14 + eval $(keychain --agents gpg,ssh --eval) 15 + fi 14 16 15 - # Added by Toolbox App 16 - export PATH="$PATH:/home/ajhalili2006/.local/share/JetBrains/Toolbox/scripts" 17 + # how about detecting local configs 18 + if [ -f "$HOME/.config/localconfig.env" ]; then 19 + . "$HOME/.config/localconfig.env" 20 + fi 17 21 18 22 _byobu_sourced=1 . /usr/bin/byobu-launch 2>/dev/null || true 19 - 20 - if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then . "$HOME/.nix-profile/etc/profile.d/nix.sh"; fi # added by Nix installer
+1
.bashrc
··· 60 60 fi 61 61 62 62 # handle hostname generation for importing host-specific configs 63 + # TODO: Handle detection when we don't have WSL_* variables on tmux shell sessions 63 64 if [[ $WSL_DISTRO_NAME ]] && [[ $WSL_INTEROP ]]; then 64 65 HOSTNAME_BASH="${HOSTNAME}-wsl-${WSL_DISTRO_NAME}" 65 66 export WSL=1 # similar to CODESPACES and GITPOD_WORKSPACE_ID vars
+8
.config/aliases
··· 6 6 # basic git commands 7 7 alias clone="git clone" 8 8 alias stats="git status" 9 + 9 10 ## shortcuts to creating commits 10 11 alias commit="git commit --signoff --gpg-sign" 11 12 alias commit-nogpg="git commit --signoff --no-gpg-sign" 12 13 alias new-checkpoint="commit" 13 14 alias new-checkpoint-nogpg="commit-nogpg" 15 + 14 16 ## shortcuts to creating tags 15 17 alias tag-checkpoint="git tag --gpg-sign" 16 18 alias tag-checkpoint-nogpg="git tag --no-gpg-sign" 17 19 alias new-tag="tag-checkpoint" 18 20 alias new-tag-nogpg="tag-checkpoint-nogpg" 21 + 19 22 ## shortcuts to managing yiff stash 20 23 alias stash="git stash push --keep-index" 21 24 alias pop-stash="git stash pop" 22 25 alias apply-stash="git stash apply" 23 26 alias yeet-stash="git stash drop" 27 + 24 28 ## staging stuff 25 29 alias stage="git add" 26 30 alias unstage="git restore --staged" ··· 70 74 71 75 # shortcuts for rdp stuff 72 76 alias bshq-cursed='rdesktop --user cursed-remote-user -r audio:local -x lan -r clipboard:PRIMARYCLIPBOARD -n guildedguy bullshit.hq' 77 + 78 + # manage submodules 79 + alias module="git submodule" 80 + alias update-module="git submodule update --remote --merge"
+4
.config/bash/tools/nixpkgs.bashrc
··· 2 2 3 3 if [[ -d "$HOME/.nix-profile/etc/profile.d/nix.sh" ]] && [[ $FF_DISABLE_NIXPKGS != "true" ]]; then 4 4 source "${HOME}/.nix-profile/etc/profile.d/nix.sh" 5 + fi 6 + 7 + if command -v devbox >> /dev/null; then 8 + eval "$(devbox global shellenv)" 5 9 fi
+6 -1
.gitconfig
··· 6 6 7 7 [commit] 8 8 gpgSign = true 9 - template = /home/ajhalili2006/.config/git/commit-message-templates/default 9 + template = ~/.config/git/commit-message-templates/default 10 10 [tag] 11 11 gpgSign = true 12 12 forceSignAnnotated = true ··· 98 98 path = ~/.config/git/recaptime-dev.include.gitconfig 99 99 #[includeIf "gitdir/i:~projects/"] 100 100 # path = ~/.config/git/ajhalili2006.include.gitconfig 101 + [trailer "sign"] 102 + key = "Signed-off-by: " 103 + ifmissing = add 104 + ifexists = doNothing 105 + command = echo \"$(git config user.name) <$(git config user.email)>\"
+2 -8
.profile
··· 3 3 if [ -n "$BASH_VERSION" ]; then 4 4 # include .bashrc if it exists 5 5 if [ -f "$HOME/.bashrc" ]; then 6 - . "$HOME/.bashrc" 6 + . "$HOME/.bashrc" 7 7 fi 8 8 fi 9 9 10 - export PATH="/usr/local/bin${PATH:+:}$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts:$HOME/.local/bin" # ~vern specifics and more 10 + export PATH="/usr/local/bin:$HOME/.local/bin:$HOME/bin${PATH:+:}$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts" # ~vern specifics and more 11 11 mesg n 2> /dev/null || true 12 12 13 13 # then import the rest ··· 19 19 if [ -f "$HOME/.config/localconfig.env" ]; then 20 20 . "$HOME/.config/localconfig.env" 21 21 fi 22 - 23 - # Import asdf to shell 24 - #export ASDF_DIR="$HOME/.asdf" 25 - #. "$HOME/.asdf/asdf.sh" 26 - 27 - eval "$(devbox global shellenv)" 28 22 29 23 _byobu_sourced=1 . /usr/bin/byobu-launch 2>/dev/null || true