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.

General configuration changes hellscape

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

+64 -41
+2 -1
.bash_login
··· 12 12 # Stage 1: Source the ~/.profile 13 13 source "$HOME/.profile" 14 14 15 - 16 15 # Added by Toolbox App 17 16 export PATH="$PATH:/home/ajhalili2006/.local/share/JetBrains/Toolbox/scripts" 18 17 19 18 _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
+22 -25
.bashrc
··· 4 4 # oh-my-zsh, although I still use zsh as my default shell. Sorry for a 5 5 # lot of personal commentary and links hellscape here, it's there for 6 6 # in-code docs and for future me to not dig through 'git log' hell. 7 - # SPDX-License-Identifier: TBD 7 + # SPDX-License-Identifier: MIT AND MPL-2.0 8 8 9 9 ## Stage 0: Init keychain + GPG_TTY for pinentry hellscapes in TUI. ## 10 - ## This stage also initalizes oh-my-posh here. ## 10 + ## This stage also initalizes oh-my-posh or custom 11 + ## PSI here. ## 11 12 if [[ $TERMUX ]]; then 12 13 export SSH_AGENT_=todo 13 14 elif command -v keychain >> /dev/null; then ··· 15 16 eval $(keychain --agents gpg,ssh --eval) 16 17 fi 17 18 export GPG_TTY=$(tty) 18 - # TODO: Implement feature flag disabling this. 19 - if command -v oh-my-posh >>/dev/null; then 19 + 20 + if command -v oh-my-posh >>/dev/null && [[ $FF_USE_OHMYPOSH != "false" ]]; then 20 21 eval "$(oh-my-posh init bash)" 22 + else 23 + if [[ $PROMPT_THEME != "" ]] && [[ -f "$HOME/.config/bash/shell-prompts/${PROMPT_THEME}.bashrc" ]]; then 24 + source "$HOME/.config/bash/shell-prompts/${PROMPT_THEME}.bashrc" 25 + else 26 + source "$HOME/.config/bash/shell-prompts/vern.bashrc" 27 + fi 21 28 fi 22 29 23 - ## Stage 1: Init custom vars and shortcuts before anything else ## 30 + ## Stage 1: Init custom vars and shortcuts before anything else ## 31 + ## Note that ~/.env and ~/.env.local should be loaded eariler on ## 24 32 # Dotfiles stuff, maybe should be on ~/.env? 25 - export DOTFILES_HOME="$HOME/.dotfiles" 33 + #export DOTFILES_HOME="$HOME/.dotfiles" 26 34 export DOTFILES_BIN="$DOTFILES_HOME/bin" 27 35 # gopath should be on ~/.local/share/go to not fuck up with local install 28 36 # at ~/go if exists ··· 33 41 # to my first editor after Notepad that started my web dev + Linux journey, 34 42 # Atom (https://github.com/atom). 35 43 export EDITOR=nano 36 - # For compartibility reasons and not to fuck things up on ~/go/bin. 37 - # Custom path might be also on ~/.env too? 38 - # It would be nice if I would work on self-hosted reimplementation of 39 - # proxy.golang.org, but in meanwhile, you need to fuck off Google on this. 40 - # (Fucking Facebook and Microsoft off your lives are also hard too ICYMI.) 41 44 # Context: https://git.sr.ht/~sircmpwn/dotfiles/tree/master/item/.profile#L13-15 42 45 # and https://drewdevault.com/2021/08/06/goproxy-breaks-go.html 43 46 export GOPROXY=direct GOSUMDB=off ··· 49 52 source "$HOME/.bashbox/env" 50 53 fi 51 54 52 - export HOMEBREW_HOME=${HOMEBREW_HOME:-"/home/linuxbrew/.linuxbrew"} 53 - test -d "$HOMEBREW_HOME" && eval "$($HOMEBREW_HOME/bin/brew shellenv)" 54 - [[ -r "$HOMEBREW_HOME/etc/profile.d/bash_completion.sh" ]] && . "$HOMEBREW_HOME/etc/profile.d/bash_completion.sh" 55 + # handle hostname generation for importing host-specific configs 56 + if [[ $WSL_DISTRO_NAME ]] && [[ $WSL_INTEROP ]]; then 57 + HOSTNAME_BASH="${HOSTNAME}-wsl-${WSL_DISTRO_NAME}" 58 + export WSL=1 # similar to CODESPACES and GITPOD_WORKSPACE_ID vars 59 + else 60 + HOSTNAME_BASH="${HOSTNAME}" 61 + fi 55 62 56 - for file in "$HOME/.config/bash/${HOSTNAME}.bash" "$HOME/.config/bash/prompt" "${HOME}/.config/bash/bashrc"; do 63 + for file in "$HOME/.config/bash/hosts/${HOSTNAME_BASH}.bashrc" "${HOME}/.config/bash/bashrc"; do 57 64 [ -f $file ] && . "$file" 58 65 done 59 66 60 - export NVM_DIR="$HOME/.nvm" 61 - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm 62 - [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion 63 - 64 - # make sure shell completions are loaded too 65 - . "$HOME/.asdf/asdf.sh" 66 - . "$HOME/.asdf/completions/asdf.bash" 67 - 68 - eval "$(gopass completion bash)" 69 - eval "$(devbox global shellenv)"
+34 -10
.config/htop/htoprc
··· 1 1 # Beware! This file is rewritten by htop when settings are changed in the interface. 2 2 # The parser is also very primitive, and not human-friendly. 3 + htop_version=3.2.2 4 + config_reader_min_version=3 3 5 fields=0 48 17 18 38 39 40 2 46 47 49 1 4 - sort_key=46 5 - sort_direction=-1 6 - tree_sort_key=47 7 - tree_sort_direction=-1 8 6 hide_kernel_threads=1 9 7 hide_userland_threads=0 8 + hide_running_in_container=0 10 9 shadow_other_users=1 11 10 show_thread_names=0 12 11 show_program_path=1 13 12 highlight_base_name=1 13 + highlight_deleted_exe=1 14 + shadow_distribution_path_prefix=0 14 15 highlight_megabytes=1 15 16 highlight_threads=1 16 17 highlight_changes=0 ··· 18 19 find_comm_in_cmdline=1 19 20 strip_exe_from_cmdline=1 20 21 show_merged_command=1 21 - tree_view=1 22 - tree_view_always_by_pid=0 23 22 header_margin=1 23 + screen_tabs=0 24 24 detailed_cpu_time=1 25 25 cpu_count_from_one=1 26 26 show_cpu_usage=1 ··· 32 32 color_scheme=0 33 33 enable_mouse=1 34 34 delay=5 35 - left_meters=AllCPUs Memory Swap 36 - left_meter_modes=1 1 1 37 - right_meters=Tasks LoadAverage Uptime 38 - right_meter_modes=2 2 2 39 35 hide_function_bar=0 36 + header_layout=two_50_50 37 + column_meters_0=AllCPUs Memory Swap 38 + column_meter_modes_0=1 1 1 39 + column_meters_1=Tasks LoadAverage Uptime 40 + column_meter_modes_1=2 2 2 41 + tree_view=1 42 + sort_key=46 43 + tree_sort_key=1 44 + sort_direction=-1 45 + tree_sort_direction=1 46 + tree_view_always_by_pid=0 47 + all_branches_collapsed=0 48 + screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command 49 + .sort_key=PERCENT_CPU 50 + .tree_sort_key=Command 51 + .tree_view=1 52 + .tree_view_always_by_pid=0 53 + .sort_direction=-1 54 + .tree_sort_direction=1 55 + .all_branches_collapsed=0 56 + screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE Command 57 + .sort_key=IO_RATE 58 + .tree_sort_key=PID 59 + .tree_view=0 60 + .tree_view_always_by_pid=0 61 + .sort_direction=-1 62 + .tree_sort_direction=1 63 + .all_branches_collapsed=0
+4
.env
··· 18 18 # Customized PATH + Jetbrains Toolbox 19 19 export PATH="$HOME/go/bin:$HOME/.local/bin:$GOPATH/bin:$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts" 20 20 21 + # Hardcode timezone to PHT unless otherwise specified in ~/.env.local. 22 + # You might need tzdata installed on Alpine per https://wiki.alpinelinux.org/wiki/Setting_the_timezone 23 + export TZ=Asia/Manila 24 + 21 25 ########################################################################################## 22 26 # Code snippets from https://git.sr.ht/~sircmpwn/dotfiles/tree/db5945a4/item/.env 23 27 ##########################################################################################
-3
.gnupg/gpg-agent.conf
··· 7 7 # Let's be serious about our password hygenine 8 8 min-passphrase-len 12 9 9 min-passphrase-nonalpha 3 10 - 11 - # Use our bloody pinentry handler for that. 12 - #pinentry-program bash /home/ajhalili2006/bin/handle-pinentry
+2 -1
.vscode/extensions.json
··· 1 1 { 2 2 "recommendations": [ 3 - "mads-hartmann.bash-ide-vscode" 3 + "mads-hartmann.bash-ide-vscode", 4 + "jetpack-io.devbox" 4 5 ] 5 6 }
-1
bin/handle-pinentry
··· 38 38 exit 1 39 39 fi 40 40 else 41 - warn "environment can't be detected ($desktop), using pinentry-curses" 42 41 if command -v pinentry-curses >> /dev/null; then 43 42 target_bin=pinentry-curses 44 43 else