aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLibravatar sommerfeld <[email protected]>2026-04-17 10:53:28 +0100
committerLibravatar sommerfeld <[email protected]>2026-04-17 10:53:28 +0100
commit15bc23ba85f714797f3496ad6f7460877f974253 (patch)
tree45f5bd2d1256654c53393a552324f35f179aa982
parentbf32d51f8e780dfb52fbbd080eef5e110232f065 (diff)
downloaddotfiles-15bc23ba85f714797f3496ad6f7460877f974253.tar.gz
dotfiles-15bc23ba85f714797f3496ad6f7460877f974253.tar.bz2
dotfiles-15bc23ba85f714797f3496ad6f7460877f974253.zip
chore: delete obsolete shell config files
Remove files made redundant by the zsh-only rewrite: - home/.profile (POSIX login shell — replaced by .zprofile) - home/.bashrc (bash interactive — no longer needed) - home/.bash_logout (bash logout — no longer needed) - home/.config/sh/envrc (shared env vars — merged into .zprofile) - home/.config/sh/aliases (shared aliases — merged into .zshrc) - home/.config/sh/shinit (POSIX interactive init — merged into .zshrc) The inputrc file is kept for readline-based tools (python REPL, etc.).
-rw-r--r--home/.bash_logout7
-rw-r--r--home/.bashrc53
-rw-r--r--home/.config/sh/aliases73
-rw-r--r--home/.config/sh/envrc196
-rw-r--r--home/.config/sh/shinit41
-rwxr-xr-xhome/.profile24
6 files changed, 0 insertions, 394 deletions
diff --git a/home/.bash_logout b/home/.bash_logout
deleted file mode 100644
index de4f5f7..0000000
--- a/home/.bash_logout
+++ /dev/null
@@ -1,7 +0,0 @@
-# ~/.bash_logout: executed by bash(1) when login shell exits.
-
-# when leaving the console clear the screen to increase privacy
-
-if [ "$SHLVL" = 1 ]; then
- [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
-fi
diff --git a/home/.bashrc b/home/.bashrc
deleted file mode 100644
index 2a65933..0000000
--- a/home/.bashrc
+++ /dev/null
@@ -1,53 +0,0 @@
-# ~/.bashrc: executed by bash(1) for non-login shells.
-# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
-# for examples
-case $- in
- *i*) stty -ixon
- ;;
- *) return
- ;;
-esac
-
-# shellcheck source=/dev/null
-[ -r ~/.config/sh/shinit ] && . ~/.config/sh/shinit
-
-safesource /usr/share/git/completion/git-prompt.sh
-
-PS1="\[\033[38;1;32m\]\u\[$(tput sgr0)\]\[\033[38;1;37m\]@\[$(tput sgr0)\]\[\033[38;1;36m\]\h\[$(tput sgr0)\]\[\033[38;1;37m\]:\[$(tput sgr0)\]\[\033[38;0;33m\]\w\[$(tput sgr0)\]$(__git_ps1 " (%s)")[\[\033[38;0;31m\]\$?\[$(tput sgr0)\]]\$ "
-export PS1
-
-
-HISTFILE="$XDG_CACHE_HOME"/bash_history
-# don't put duplicate lines or lines starting with space in the history.
-# See bash(1) for more options
-HISTCONTROL=ignoreboth
-
-# append to the history file, don't overwrite it
-shopt -s histappend
-
-# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
-HISTSIZE=50000
-HISTFILESIZE=50000
-
-# check the window size after each command and, if necessary,
-# update the values of LINES and COLUMNS.
-shopt -s checkwinsize
-
-# If set, the pattern "**" used in a pathname expansion context will
-# match all files and zero or more directories and subdirectories.
-#shopt -s globstar
-
-# enable programmable completion features (you don't need to enable
-# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
-# sources /etc/bash.bashrc).
-if ! shopt -oq posix; then
- safesource /usr/share/bash-completion/bash_completion
-fi
-
-shopt -s autocd
-
-bind '"\eh": "\C-a\eb\ed\C-y\e#man \C-y\C-m\C-p\C-p\C-a\C-d\C-e"'
-
-eval "$(fzf --bash)"
-
-complete -F _command doas
diff --git a/home/.config/sh/aliases b/home/.config/sh/aliases
deleted file mode 100644
index 7a0d696..0000000
--- a/home/.config/sh/aliases
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/usr/bin/env sh
-
-alias l='lsd -l'
-alias la='lsd -lA'
-alias lt='lsd --tree'
-
-whichkey() {
- xev | awk -F'[ )]+' '/^KeyPress/ { a[NR+2] } NR in a { printf "%-3s %s\n", $5, $8 }'
-}
-
-alias sudo='doas'
-alias sudoedit='doasedit'
-
-alias grep='grep --color=auto'
-alias fgrep='fgrep --color=auto'
-alias egrep='egrep --color=auto'
-alias diff='diff --color=auto'
-alias dmesg='dmesg --color=auto'
-alias dm='dmesg --color=always | less -r'
-alias ip="ip -color=auto"
-alias lsip="ip -human -color=auto --brief address show"
-alias ipa="ip -stats -details -human -color=auto address show"
-
-alias g='git'
-
-alias sys='systemctl'
-alias ssys='doas systemctl'
-alias sysu='systemctl --user'
-
-alias gimme='doas chown $USER:$(id -gn $USER)'
-alias free='free -h'
-alias ...='cd ../..'
-alias ....='cd ../../..'
-alias .....='cd ../../../..'
-alias mkdir='mkdir -p'
-alias du='du -h'
-alias df='df -h'
-alias pacdiff='doas pacdiff'
-alias stow='stow -R --no-folding --adopt'
-
-alias pacopt='comm -13 <(pacman -Qqdt | sort) <(pacman -Qqdtt | sort)'
-
-alias ipecho='curl ipecho.net/plain'
-alias curl='curlie'
-alias xclip="xclip -selection clipboard -f"
-
-alias cpr='rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1'
-alias mvr='rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1 --remove-source-files'
-alias sub='subliminal download -l en'
-alias ss='doas ss -tupnl'
-alias c='clear'
-
-alias n='nvim'
-alias ndiff='nvim -d'
-alias nd='nvim -d'
-alias nview='nvim -R'
-alias nv='nvim -R'
-alias ng='nvim +Neogit'
-
-alias ta='tmux new-session -A'
-alias tas='tmux new-session -A -s'
-
-alias ncmake='cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_FLAGS="$DEV_CFLAGS" -DCMAKE_CXX_FLAGS="$DEV_CFLAGS" -DCMAKE_INSTALL_PREFIX=build/install -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -B build'
-
-alias ircc='clang -S -emit-llvm -fno-discard-value-names -O0 -Xclang -disable-O0-optnone -o -'
-alias irfc='flang -S -emit-llvm -O0 -o -'
-alias astcc='clang -Xclang -ast-dump -fsyntax-only'
-alias astfc='flang -fc1 -fdebug-dump-parse-tree'
-alias symfc='flang -fc1 -fdebug-dump-symbols'
-
-alias gdb='gdb -ex start --args'
-alias j='just'
-alias copilot='gh copilot --yolo --autopilot --enable-all-github-mcp-tools --resume'
diff --git a/home/.config/sh/envrc b/home/.config/sh/envrc
deleted file mode 100644
index 95918c8..0000000
--- a/home/.config/sh/envrc
+++ /dev/null
@@ -1,196 +0,0 @@
-#! /bin/sh
-
-if [ -z "$ENV_SOURCED" ]; then
- export PATH="$HOME"/.local/bin:"$PATH"
- export ENV_SOURCED="$0"
-fi
-
-safesource() {
- # shellcheck source=/dev/null
- [ -r "$1" ] && . "$1"
-}
-
-exists() {
- command -v "$1" >/dev/null 2>&1
-}
-
-ifexists() {
- exists "$1" && "$@"
-}
-
-case $TERM in
- *256color|*truecolor)
- export COLORTERM=24bit
- ;;
-esac
-
-# tell gpg which tty one is using so that it can prompt for pw
-GPG_TTY=$(tty)
-export GPG_TTY
-export GPG_AGENT_INFO=1
-# set XDG env vars
-export XDG_CONFIG_HOME="$HOME"/.config
-export XDG_DATA_HOME="$HOME"/.local/share
-export XDG_STATE_HOME="$HOME"/.local/state
-export XDG_CACHE_HOME="$HOME"/.cache
-# set ENV var to tell sh shell where its config file is
-export ENV="$XDG_CONFIG_HOME"/sh/shinit
-export EDITOR='nvim'
-export DIFFPROG='nvim -d'
-export VISUAL="$EDITOR"
-export MANPAGER='nvim +Man!'
-export MANWIDTH=999
-
-# # Get color support for 'less'
-[ -r /usr/bin/source-highlight-esc.sh ] && export LESSOPEN="| /usr/bin/source-highlight-esc.sh %s"
-export LESS="--RAW-CONTROL-CHARS"
-LESS_TERMCAP_mb="$(
- tput bold
- tput setaf 2
-)" # green
-export LESS_TERMCAP_mb
-LESS_TERMCAP_md="$(
- tput bold
- tput setaf 6
-)" # cyan
-export LESS_TERMCAP_md
-LESS_TERMCAP_me="$(tput sgr0)"
-export LESS_TERMCAP_me
-LESS_TERMCAP_so="$(
- tput bold
- tput setaf 3
- tput setab 4
-)" # yellow on blue
-export LESS_TERMCAP_so
-LESS_TERMCAP_se="$(
- tput rmso
- tput sgr0
-)"
-export LESS_TERMCAP_se
-LESS_TERMCAP_us="$(
- tput smul
- tput bold
- tput setaf 7
-)" # white
-export LESS_TERMCAP_us
-LESS_TERMCAP_ue="$(
- tput rmul
- tput sgr0
-)"
-export LESS_TERMCAP_ue
-LESS_TERMCAP_mr="$(tput rev)"
-export LESS_TERMCAP_mr
-LESS_TERMCAP_mh="$(tput dim)"
-export LESS_TERMCAP_mh
-LESS_TERMCAP_ZN="$(tput ssubm)"
-export LESS_TERMCAP_ZN
-LESS_TERMCAP_ZV="$(tput rsubm)"
-export LESS_TERMCAP_ZV
-LESS_TERMCAP_ZO="$(tput ssupm)"
-export LESS_TERMCAP_ZO
-LESS_TERMCAP_ZW="$(tput rsupm)"
-export LESS_TERMCAP_ZW
-
-export LESS="-F -X $LESS"
-
-export LANG=en_US.UTF-8
-export OPENER='xdg-open'
-export FZF_DEFAULT_COMMAND="fd --type file --follow --hidden --exclude .git --color=always"
-export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
-export FZF_DIRS_COMMAND="fd --type d --follow --hidden --exclude .git --color=always"
-export FZF_DEFAULT_OPTS="--ansi --layout=reverse --inline-info --cycle --color=dark --color=fg:-1,bg:-1,hl:#5fff87,fg+:-1,bg+:-1,hl+:#ffaf5f --color=info:#af87ff,prompt:#5fff87,pointer:#ff87d7,marker:#ff87d7,spinner:#ff87d7"
-export FZF_CTRL_T_OPTS="--preview 'bat --color=always --style=numbers --line-range=:500 {}' 2> /dev/null | head -200' --select-1 --exit-0"
-export FZF_CTRL_R_OPTS="--preview 'echo {}' --preview-window down:3:hidden:wrap --bind '?:toggle-preview' --sort --exact"
-export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -200'"
-
-if [ "$TMUX" ]; then
- export FZF_TMUX=1
-fi
-
-export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
-export BROWSER='linkhandler'
-export TERMINAL='alacritty'
-# Suppress Gnome Accessibility bus warnings in gtk apps
-export NO_AT_BRIDGE=1
-# Enable Webrender in firefox for video decode hw acceleration
-export MOZ_WEBRENDER=1
-export MOZ_X11_EGL=1
-# set in new intel iris HD driver for VA-API video hw decoding
-if [ "$(uname -n)" = "halley2" ]; then
- export LIBVA_DRIVER_NAME="iHD"
- export MESA_LOADER_DRIVER_OVERRIDE="iris"
- export VAAPI_MPEG4_ENABLED=true
-fi
-
-# set sxhkd shell to sh for faster response times
-export SXHKD_SHELL="sh"
-# Java: use system anti-aliased fonts and make swing use the GTK look and feel:
-export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Djava.util.prefs.userRoot=$XDG_CONFIG_HOME/java -Djdk.gtk.version=2"
-# https://wiki.archlinux.org/title/Java#Gray_window,_applications_not_resizing_with_WM,_menus_immediately_closing
-export _JAVA_AWT_WM_NONREPARENTING=1
-export AWT_TOOLKIT=MToolkit
-
-export QT_QPA_PLATFORMTHEME=qt5ct
-
-# always prevent vsync
-export vblank_mode=0
-
-# detailed git PS1
-export GIT_PS1_SHOWDIRTYSTATE=1
-export GIT_PS1_SHOWSTASHSTATE=1
-unset GIT_PS1_SHOWUNTRACKEDFILES
-export GIT_PS1_SHOWUPSTREAM="verbose"
-export GIT_PS1_SHOWCONFLICTSTATE="yes"
-export GIT_PS1_DESCRIBE_STYLE="branch"
-export GIT_PS1_SHOWCOLORHINTS=1
-export GIT_PS1_HIDE_IF_PWD_IGNORED=1
-
-# only set XAUTHORITY when not logging from ssh, since it breaks xauth
-[ "$XDG_RUNTIME_DIR" ] && export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
-
-export DOCKER_HOST="unix://$XDG_RUNTIME_DIR/podman/podman.sock"
-
-# https://github.com/sparrowwallet/sparrow/issues/170#issuecomment-896866817
-export GDK_DISPLAY=1
-
-# cleanup ~
-# https://wiki.archlinux.org/title/XDG_Base_Directory#Partial
-export ALTUSERXSESSION="$XDG_CACHE_HOME/x11/Xsession"
-export CARGO_HOME="$XDG_DATA_HOME/cargo"
-export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv"
-export ERRFILE="$XDG_CACHE_HOME/x11/xsession-errors"
-export GNUPGHOME="$XDG_DATA_HOME/gnupg"
-export GOPATH="$XDG_DATA_HOME/go"
-export GRADLE_USER_HOME="$XDG_DATA_HOME/gradle"
-export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0"
-export GTK_RC_FILES="$XDG_CONFIG_HOME/gtk-1.0/gtkrc"
-export INPUTRC="$XDG_CONFIG_HOME/sh/inputrc"
-export NODE_REPL_HISTORY="$XDG_DATA_HOME/node_repl_history"
-export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
-export PYTHON_EGG_CACHE="$XDG_CACHE_HOME/python-eggs"
-export RUFF_CACHE_DIR=$XDG_CACHE_HOME/ruff
-export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
-export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
-export USERXSESSION="$XDG_CACHE_HOME/x11/xsession"
-export USERXSESSIONRC="$XDG_CACHE_HOME/x11/xsessionrc"
-export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
-export WINEPREFIX="$XDG_DATA_HOME/wineprefixes/default"
-export WORKON_HOME="$XDG_DATA_HOME/virtualenvs"
-export XCOMPOSECACHE="$XDG_CACHE_HOME/X11/xcompose"
-export XCOMPOSEFILE="$XDG_CONFIG_HOME/X11/xcompose"
-export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
-export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc"
-export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
-
-unset SSH_AGENT_PID
-SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
-export SSH_AUTH_SOCK
-
-if [ "$(uname -n)" = "hercules" ]; then
- export OCL_ICD_VENDORS=nvidia
- # shellcheck source=/dev/null
- [ -r ~/.config/sh/envrc ] && . ~/.config/sh/work-envrc
-fi
-
-export FIRECRAWL_API_KEY="$(pass show copilot/firecrawl-api-key)"
-export SENTRY_ACCESS_TOKEN="$(pass show copilot/sentry-access-token)"
diff --git a/home/.config/sh/shinit b/home/.config/sh/shinit
deleted file mode 100644
index 404722e..0000000
--- a/home/.config/sh/shinit
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/usr/bin/env sh
-# If not running interactively, don't do anything
-case $- in
- *i*) stty -ixon
- ;;
- *) return
- ;;
-esac
-
-# shellcheck source=/dev/null
-[ -r ~/.config/sh/envrc ] && . ~/.config/sh/envrc
-
-gpg-connect-agent updatestartuptty /bye >/dev/null
-
-_fzf_compgen_path() {
- eval "$FZF_DEFAULT_COMMAND" "$1"
-}
-
-_fzf_compgen_dir() {
- eval "$FZF_DIRS_COMMAND" "$1"
-}
-
-safesource "$XDG_CONFIG_HOME"/sh/aliases
-
-# numlock
-tput smkx
-
-PS1="[\$?]\$ "
-export PS1
-
-if [ "$TERM" = "linux" ]; then
- _SEDCMD='s/.*\*color\([0-9]\{1,\}\).*#\([0-9a-fA-F]\{6\}\).*/\1 \2/p'
- mkfifo mypipe
- sed -n "$_SEDCMD" "$HOME"/.Xresources | awk '$1 < 16 {printf "\\e]P%X%s", $1, $2}' > mypipe &
- while IFS= read -r i
- do
- printf "%s" "$i"
- done < mypipe
- rm mypipe
- clear
-fi
diff --git a/home/.profile b/home/.profile
deleted file mode 100755
index 2550836..0000000
--- a/home/.profile
+++ /dev/null
@@ -1,24 +0,0 @@
-# ~/.profile: executed by the command interpreter for login shells.
-# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
-# exists.
-# see /usr/share/doc/bash/examples/startup-files for examples.
-# the files are located in the bash-doc package.
-
-# the default umask is set in /etc/profile; for setting the umask
-# for ssh logins, install and configure the libpam-umask package.
-#umask 022
-
-# shellcheck source=/dev/null
-[ -r ~/.config/sh/envrc ] && . ~/.config/sh/envrc
-
-if [ ! "$DISPLAY" ] && [ "$XDG_VTNR" = "1" ]; then
- ifexists sx
-fi
-
-if [ "$BASH" ]; then
- safesource ~/.bashrc
-elif [ "$ZSH_VERSION" ]; then
- safesource "$XDG_CONFIG_HOME"/zsh/.zshrc
-else
- safesource "$XDG_CONFIG_HOME"/sh/shinit
-fi