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): regular configuration hellscape for now

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

+110 -5
+7
.bash_logout
··· 1 + # ~/.bash_logout: executed by bash(1) when login shell exits. 2 + 3 + # when leaving the console clear the screen to increase privacy 4 + 5 + if [ "$SHLVL" = 1 ]; then 6 + [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q 7 + fi
+3 -3
.bashrc
··· 10 10 ## This stage also initalizes oh-my-posh here. ## 11 11 if [[ $TERMUX ]]; then 12 12 export SSH_AGENT_=todo 13 - else 13 + elif command -v keychain >> /dev/null; then 14 + export KEYCHAIN_PATh=$(command -v keychain) 14 15 eval $(keychain --agents gpg,ssh --eval) 15 16 fi 16 17 export GPG_TTY=$(tty) 17 - # Tip: I don't want to f**k things up on POSIX-based stuff, I might try 18 - # using 18 + # TODO: Implement feature flag disabling this. 19 19 if command -v oh-my-posh >>/dev/null; then 20 20 eval "$(oh-my-posh init bash)" 21 21 fi
-1
.byobu/.ssh-agent
··· 1 - /tmp/ssh-XXXXXXCepcGI/agent.135
+35
.config/bash/aliases
··· 1 + # General 2 + alias clear="printf '\033c'" # faster than ncurses clear by a lot 3 + alias c='clear' 4 + alias bashrc="vim ~/.bashrc && source ~/.bashrc" 5 + # LS 6 + alias ls='ls --color=auto -FAh' 7 + alias ll='ls -l' 8 + alias la='ls' 9 + alias l.='ls | egrep "^\."' 10 + alias l=ls 11 + # GREP 12 + alias grep='grep --color=auto' 13 + alias egrep='egrep --color=auto' 14 + alias fgrep='fgrep --color=auto' 15 + # GIT 16 + alias ga='git add' 17 + alias gc='git commit' 18 + alias gp='git push' 19 + alias lc='fc -nl $HISTCMD' 20 + # CADDY 21 + alias rc='caddy reload --config ~/Caddyfile' 22 + alias ft='caddy fmt --overwrite ~/Caddyfile' 23 + alias vt='caddy validate --config ~/Caddyfile' 24 + # Navigation 25 + alias ..='cd ..' 26 + alias ...='cd ../../' 27 + alias ....='cd ../../../' 28 + alias .....='cd ../../../../' 29 + # Readability 30 + alias cp="cp -iv" 31 + alias mv='mv -iv' 32 + alias rm='rm -iv' 33 + alias df='df -h' 34 + alias free='free -m' 35 + alias mkdir='mkdir -pv'
.config/bash/prompt .config/bash/prompt.old
+57
.config/bash/prompt.new
··· 1 + __sig() { 2 + # Giant switch case for getting the name of the signal (`kill -l`) 3 + a=0 4 + for i in $@; do 5 + a=$((a+1)) 6 + case $i in 7 + 126) printf ACCES ;; 8 + 127) printf NOENT ;; 9 + 129) printf HUP ;; 10 + 130) printf INT ;; 11 + 131) printf QUIT ;; 12 + 132) printf ILL ;; 13 + 133) printf TRAP ;; 14 + 134) printf ABRT ;; 15 + 135) printf BUS ;; 16 + 136) printf FPE ;; 17 + 137) printf KILL ;; 18 + 138) printf USR1 ;; 19 + 139) printf SEGV ;; 20 + 140) printf USR2 ;; 21 + 141) printf PIPE ;; 22 + 142) printf ALRM ;; 23 + 143) printf TERM ;; 24 + 144) printf STKFLT ;; 25 + 145) printf CHLD ;; 26 + 146) printf CONT ;; 27 + 147) printf STOP ;; 28 + 148) printf TSTP ;; 29 + 149) printf TTIN ;; 30 + 150) printf TTOU ;; 31 + 151) printf URG ;; 32 + 152) printf XCPU ;; 33 + 153) printf XFSZ ;; 34 + 154) printf VTALRM ;; 35 + 155) printf PROF ;; 36 + 156) printf WINCH ;; 37 + 157) printf IO ;; 38 + 158) printf PWR ;; 39 + 159) printf SYS ;; 40 + 16[3-9]|1[7-8][0-9]|19[0-2]) printf RT$(($i-128)) ;; # Savagery 41 + *) printf $i ;; # Print exit code if not in list 42 + esac 43 + done 44 + } 45 + sig() { 46 + PLC=(${PIPESTATUS[@]}) 47 + printf "$(__sig ${PLC[@]})" 48 + } 49 + NO_COLOUR="\[\033[0m\]" 50 + # Bold Colours 51 + RED="\[\033[01;31m\]" 52 + GREEN="\[\033[01;32m\]" 53 + YELLOW="\[\033[01;33m\]" 54 + BLUE="\[\033[01;34m\]" 55 + 56 + PS1="[${RED}\$(sig)${NO_COLOUR}] [\t] [${RED}\u${NO_COLOUR}@${GREEN}\h${NO_COLOUR}|${BLUE}\w${NO_COLOUR}] [${YELLOW}#\#${NO_COLOUR}] ${GREEN}\$ ${NO_COLOUR}" 57 +
+3
.env
··· 43 43 export SAMUFLAGS="-j$nproc" 44 44 fi 45 45 ########################################################################################## 46 + 47 + # import aliases to shell too 48 + . "$HOME/.config/bash/aliases"
+1 -1
.gitconfig
··· 1 1 [user] 2 2 name = Andrei Jiroh Halili 3 - email = ajhalili2006@gmail.com 3 + email = ajhalili2006@andreijiroh.eu.org 4 4 signingkey = 67BFC91B3DA12BE8 5 5 6 6 [commit]
+4
.profile
··· 15 15 source "$HOME/.config/aliases" 16 16 export POSIX_PROFILE_SOURCED=true 17 17 18 + # how about detecting local configs 19 + if [ ! -f "$HOME/.config/localconfig.env" ]; then 20 + . "$HOME/.config/localconfig.env" 21 + fi 18 22 19 23 # Added by Toolbox App 20 24 export PATH="$PATH:/home/ajhalili2006/.local/share/JetBrains/Toolbox/scripts"