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.

chore(global): update shellrcs and config

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

+58 -88
+3 -17
.config/bash/functions
··· 11 11 12 12 if [ -f "$PWD/.env.keys" ] && [[ "$LOADED_DOTENV_KEYS" != "1" ]]; then 13 13 echo "dotenv-keys: loading up dotenv keys from this directory" 14 - 15 - # TODO: Add source link since it is obviously copied from Stack Overflow. 16 - unamestr=$(uname) 17 - if [ "$unamestr" = 'Linux' ]; then 18 - export $(grep -v '^#' .env.keys | xargs -d '\n') 19 - elif [ "$unamestr" = 'FreeBSD' ] || [ "$unamestr" = 'Darwin' ]; then 20 - export $(grep -v '^#' .env.keys | xargs -0) 21 - fi 22 - 14 + export "$(grep -v '^#' .env.keys | xargs)" 23 15 export DOTENV_KEYS_LOADED=1 LAST_DOTENV_DIR=$PWD DOTENV_KEYS_LOADER=auto 24 16 elif [ ! -f "$PWD/.env.keys" ] && [[ "$LOADED_DOTENV_KEYS" == "1" ]]; then 25 17 echo "dotenv-keys: unloading dotenv keys" ··· 45 37 fi 46 38 47 39 echo "dotenv-keys: loading up dotenv keys from this directory" 48 - # TODO: Add source link since it is obviously copied from Stack Overflow. 49 - unamestr=$(uname) 50 - if [ "$unamestr" = 'Linux' ]; then 51 - export $(grep -v '^#' .env.keys | xargs -d '\n') 52 - elif [ "$unamestr" = 'FreeBSD' ] || [ "$unamestr" = 'Darwin' ]; then 53 - export $(grep -v '^#' .env.keys | xargs -0) 54 - fi 40 + export "$(grep -v '^#' .env.keys | xargs)" 55 41 56 42 export LOADED_DOTENV_KEYS=$PWD DOTENV_KEYS_LOADER=manual DOTENV_KEYS_LOADED=1 57 43 elif [[ $1 == "unload" ]]; then ··· 64 50 echo " load - load keys from .env.keys in current directory into shell session" 65 51 echo " unload - unload keys from shell session" 66 52 fi 67 - } 53 + }
+5
.config/bash/tools/yadm.bashrc
··· 1 + #!/usr/bin/env bash 2 + 3 + if [ -f "$HOME/.yadm-project/yadm" ]; then 4 + export PATH="$HOME/.yadm-project:$PATH" 5 + fi
+5 -49
.env
··· 1 - #!/usr/bin/env sh 2 - 3 - # SPDX-License-Identifier: MIT AND MPL-2.0 4 - # 5 - # This is POSIX sh-compartible shell script to sourced for both shortcuts 6 - # to daily commands I use and then some. 7 - # 8 - # PLEASE DO NOT LEAK ANY SECRETS, INCLUDING DOPPLER CLI TOKENS AND TAILSCALE_AUTHKEYS 9 - # IN THIS BLOODY FILE! 10 - # 11 - 1 + # TODO: Hook things up with dotenvx later. 12 2 # https://packaging.ubuntu.com/html/getting-set-up.html#configure-your-shell 13 - export DEBFULLNAME="Andrei Jiroh Halili" 14 - # Temporary Gmail address for devel stuff, even through my longer email one is, well, 15 - # on my public GPG key btw, so YOLO it. 16 - export DEBEMAIL="releases@andreijiroh.eu.org" 17 - 18 - # Customized PATH + Jetbrains Toolbox 19 - export PATH="$HOME/go/bin:$HOME/.local/bin:$GOPATH/bin:$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts" 20 - 3 + DEBFULLNAME="Andrei Jiroh Halili" 4 + DEBEMAIL="releases@andreijiroh.xyz" 21 5 # Hardcode timezone to PHT unless otherwise specified in ~/.env.local. 22 6 # You might need tzdata installed on Alpine per https://wiki.alpinelinux.org/wiki/Setting_the_timezone 23 - export TZ=Asia/Manila 24 - 25 - ########################################################################################## 26 - # Code snippets from https://git.sr.ht/~sircmpwn/dotfiles/tree/db5945a4/item/.env 27 - ########################################################################################## 28 - if ls --version 2>&1 | grep -i gnu >/dev/null 29 - then 30 - alias ls='ls --color=auto ' 31 - elif ls --version 2>&1 | grep -i busybox >/dev/null 32 - then 33 - alias ls='ls --color=auto ' 34 - fi 35 - 36 - alias recent='ls -ltch' 7 + TZ=Asia/Manila 37 8 38 - # Add optmizations for multicore builds 39 - if [ $(uname) = "Linux" ] 40 - then 41 - nproc=$(grep '^processor' /proc/cpuinfo | wc -l) 42 - if [ $nproc -gt 4 ] 43 - then 44 - # Reserve two cores 45 - nproc=$((nproc - 2)) 46 - fi 47 - export MAKEFLAGS="-j$nproc" 48 - export SAMUFLAGS="-j$nproc" 49 - fi 50 - ########################################################################################## 51 - 52 - # import aliases to shell too 53 - . "$HOME/.config/bash/aliases" 9 + export DEBFULLNAME DEBMAIL
+14 -10
.nanorc
··· 1 - # User-wide nanorc based on my system-wide configs for stellapent-cier.tailnet 2 - # to make things portable as needed. 1 + # This is my user-wide settings for nano, similar to VS Code and friends. 2 + # Feel free to use it on your own, as long as you keep the copyright information 3 + # below intact. 4 + # SPDX-License-Identifier: MIT AND MPL-2.0 (excluding third party code) 3 5 4 6 # Display line numbers to the left (and any anchors in the margin). 5 7 set linenumbers ··· 19 21 ## mouse clicks can be used to place the cursor, set the mark (with a 20 22 ## double click), and execute shortcuts. The mouse will work in the 21 23 ## X Window System, and on the console when gpm is running. 22 - set mouse 24 + #set mouse 23 25 24 26 # Switch on multiple file buffers (inserting a file will put it into a 25 27 # separate buffer). ··· 38 40 set tabstospaces 39 41 40 42 ## Snip whitespace at the end of lines when justifying or hard-wrapping. 41 - # set trimblanks 43 + set trimblanks 42 44 43 45 # import included syntax highlighting for nano 46 + # TODO: Load them via ~/.local/share/nano for portability 44 47 include "/usr/share/nano/*.nanorc" 45 48 46 49 # Make regularly-used features have more usual shortcuts 50 + bind M-Z suspend main 47 51 bind ^X cut main 48 52 bind ^C copy main 49 53 bind ^V paste all ··· 52 56 #bind ^W writeout main 53 57 #bind ^O insert main 54 58 #set multibuffer 55 - #bind ^H help all 56 - #bind ^H exit help 59 + bind ^H help all 60 + bind ^H exit help 57 61 #bind ^F whereis all 58 62 #bind ^G findnext all 59 63 #bind ^B wherewas all 60 64 #bind ^D findprevious all 61 65 #bind ^R replace main 62 - #unbind ^U all 66 + unbind ^U all 63 67 #unbind ^N main 64 68 #unbind ^Y all 65 69 #unbind M-J main ··· 67 71 bind ^A mark main 68 72 #bind ^P location main 69 73 bind ^T gotoline main 70 - #bind ^T gotodir browser 74 + bind ^T gotodir browser 71 75 #bind ^T cutrestoffile execute 72 76 #bind ^L linter execute 73 - #bind ^E execute main 77 + bind ^E execute main 74 78 #bind ^K "{mark}{end}{zap}" main 75 79 #bind ^U "{mark}{home}{zap}" main 76 80 bind ^Z undo main 77 - bind ^Y redo main 81 + bind ^Y redo main
+28 -9
.profile
··· 9 9 # for ssh logins, install and configure the libpam-umask package. 10 10 #umask 022 11 11 12 - # if running bash 13 - if [ -n "$BASH_VERSION" ]; then 14 - # include .bashrc if it exists 15 - if [ -f "$HOME/.bashrc" ]; then 16 - . "$HOME/.bashrc" 17 - fi 18 - fi 19 - 20 12 # set PATH so it includes user's private bin if it exists 21 13 if [ -d "$HOME/bin" ] ; then 22 14 PATH="$HOME/bin:$PATH" ··· 40 32 . "$HOME/.config/localconfig.env" 41 33 fi 42 34 35 + ########################################################################################## 36 + # Code snippets from https://git.sr.ht/~sircmpwn/dotfiles/tree/db5945a4/item/.env 37 + ########################################################################################## 38 + if ls --version 2>&1 | grep -i gnu >/dev/null 39 + then 40 + alias ls='ls --color=auto ' 41 + elif ls --version 2>&1 | grep -i busybox >/dev/null 42 + then 43 + alias ls='ls --color=auto ' 44 + fi 45 + 46 + alias recent='ls -ltch' 47 + 48 + # Add optmizations for multicore builds 49 + if [ $(uname) = "Linux" ] 50 + then 51 + nproc=$(grep '^processor' /proc/cpuinfo | wc -l) 52 + if [ $nproc -gt 4 ] 53 + then 54 + # Reserve two cores 55 + nproc=$((nproc - 2)) 56 + fi 57 + export MAKEFLAGS="-j$nproc" 58 + export SAMUFLAGS="-j$nproc" 59 + fi 60 + ########################################################################################## 61 + 43 62 if [[ $FF_BYOBU_ON_LOGIN != "" ]]; then 44 - fi 63 + fi
+3 -3
meta-info.toml
··· 1 1 fullname = "Andrei Jiroh Halili" 2 - gemini = "gemini.andreijiroh.eu.org" 3 - website = "https://andreijiroh.eu.org" 2 + gemini = "gemini.andreijiroh.xyz" 3 + website = "https://andreijiroh.xyz" 4 4 description = "Open-source maintainer and web dev at Recap Time Squad, sometimes NixOS + Alpine Linux user, #ActuallyAutistic" 5 - email = "ajhalili2006@andreijiroh.eu.org" 5 + email = "ajhalili2006@andreijiroh.xyz" 6 6 matrix = "@ajhalili2006:envs.net" 7 7 fediverse = "tilde.zone/@ajhalili2006" 8 8 location = "Marilao, Bulacan, Philippines"