chore: clean up dotfiles and add gitignore whitelist

Switch to whitelist-based .gitignore to only track essential configs:
nvim, yazi, kitty, zsh, ideavim, karabiner, tmux, scripts, starship.
Remove history, compiled files, and plugin dirs from tracking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Thomas Naderer
2026-03-11 12:57:14 +01:00
parent 61b1e3d2a9
commit d8a20d620a
32 changed files with 1471 additions and 2868 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@@ -1,92 +0,0 @@
: 1735721099:0;l
: 1735721105:0;h
: 1735721106:0;l
: 1735721117:0;y
: 1735721152:0;exec zsh
: 1735721153:0;l
: 1735721165:0;p10k configure
: 1735721180:0;.zshrc
: 1735721185:0;n .zshrc
: 1735721196:0;n .zshenv
: 1735721237:0;mv .zshrc .zshrc_backup
: 1735721238:0;l
: 1735721246:0;rm .zsh_history
: 1735721247:0;l
: 1735721248:0;ksadlfjk
: 1735721249:0;klsdfjkl
: 1735721250:0;l
: 1735721257:0;exec zsh
: 1735721258:0;l
: 1735721265:0;rm .zshrc_backup
: 1735721266:0;l
: 1735721271:0;nz
: 1735721275:0;y
: 1735721438:0;source .zshrc
: 1735721443:0;l
: 1735721451:0;exec zsh
: 1735721459:0;ne
: 1735721469:0;n .zshenv
: 1735721472:0;..
: 1735721473:0;h
: 1735721474:0;l
: 1735721479:0;n .zshenv
: 1735721569:0;source .zshenv
: 1735721573:0;exec zsh
: 1735721574:0;l
: 1735721589:0;nz
: 1735721623:0;exec zsh
: 1735721624:0;l
: 1735721635:0;nvim .zshenv
: 1735721645:0;ll
: 1735721651:0;y
: 1735721657:0;nz
: 1735721661:0;l
: 1735721680:0;source .config/zsh/.zshrc
: 1735721735:0;nz
: 1735721753:0;l
: 1735721772:0;n .zshenv
: 1735721793:0;zoxide
: 1735721797:0;nz
: 1735721896:0;n .zshenv
: 1735721941:0;l
: 1735722093:0;y
: 1735722123:0;pwd Dhamma\ Wheel.jpg
: 1735722132:0;pwd Dhamma Wheel.jpg
: 1735722134:0;l
: 1735722144:0;pwd 'Dhamma Wheel.jpg'| xclip
: 1735722150:0;pwd 'Dhamma Wheel.jpg'
: 1735722157:0;pwd
: 1735722281:0;l
: 1735722353:0;y
: 1735722410:0;l
: 1735722411:0;y
: 1735722433:0;l
: 1735722453:0;y
: 1735722572:0;l
: 1735722579:0;y
: 1735722622:0;l
: 1735722645:0;y
: 1735722671:0;l
: 1735722673:0;y
: 1735723245:0;l
: 1735723250:0;y
: 1735723410:0;l
: 1735723414:0;y
: 1735723448:0;exit
: 1735723509:0;l
: 1735723514:0;y
: 1735723558:0;l
: 1735724181:0;y
: 1735724209:0;brew list
: 1735727868:0;y
: 1735729702:0;telnet towel.blinkenlights.nl
: 1735729774:0;y
: 1735761687:0;git diff plugins.lua
: 1735761723:0;n plugins.lua
: 1735761758:0;n
: 1735761765:0;l
: 1735761774:0;n keymaps.lua
: 1735761786:0;n
: 1735761793:0;n keymaps.lua
: 1735761812:0;git commit
: 1735761828:0;git add ../../zsh/

View File

@@ -16,6 +16,9 @@ export MANPAGER="nvim +Man!"
## Use IINA CLI
export YTFZF_PLAYER="iina"
# Doom Emacs
export PATH="$HOME/.emacs.d/bin:$PATH"
# }}}
# # ~/.config/secrets/.env
@@ -23,14 +26,27 @@ for f in ~/.config/secrets/.env; do
export $(grep -v '^#' "$f" | xargs)
done
# Prompt engine toggle {{{
# 1 = Starship, 0 = Powerlevel10k
export USE_STARSHIP=1
# }}}
# Load Oh My Zsh {{{
export ZSH="$XDG_CONFIG_HOME/.oh-my-zsh" # set path to Oh My Zsh
ZSH_THEME="powerlevel10k/powerlevel10k" # set theme to Powerlevel10k BEFORE loading Oh My Zsh
if [[ "$USE_STARSHIP" == "1" ]]; then
ZSH_THEME="" # disable OMZ theme when using starship
else
ZSH_THEME="powerlevel10k/powerlevel10k"
fi
source $ZSH/oh-my-zsh.sh # load Oh My Zsh framework (plugins, completions, themes)
# }}}
# Theme and prompt {{{
source $XDG_CONFIG_HOME/p10k/.p10k.zsh # load Powerlevel10k configuration
if [[ "$USE_STARSHIP" == "1" ]]; then
eval "$(starship init zsh)"
else
source $XDG_CONFIG_HOME/p10k/.p10k.zsh # load Powerlevel10k configuration
fi
# }}}
# ZSH Plugins {{{
@@ -47,6 +63,17 @@ export KEYTIMEOUT=1 # make ESC faster when using vi keybindings
# }}}
# Aliases and Functions {{{
alias openclaw='/Users/thomasnaderer/.nvm/versions/node/v22.22.0/bin/node /Users/thomasnaderer/.nvm/versions/node/v22.22.0/bin/openclaw'
openclaw_tui() {
local token
token="$(jq -r '.gateway.auth.token // empty' "$HOME/.openclaw/openclaw.json" 2>/dev/null)"
if [ -z "$token" ]; then
echo "openclaw_tui: missing gateway token in ~/.openclaw/openclaw.json"
return 1
fi
OPENCLAW_GATEWAY_TOKEN="$token" openclaw tui --token "$token" "$@"
}
alias octui='openclaw_tui'
alias wfy="ssh ftp5794822\@www76.world4you.com"
alias h="cd ~" # go to home folder
alias f="open ." # open current folder in Finder
@@ -56,6 +83,7 @@ alias tni="cd /Volumes/ipec/intern" # quick cd to mounted volume intern
alias l='eza --color=always --icons -la --group-directories-first' # fancy ls with icons and sorting
alias n='nvim' # shortcut for Neovim
alias m='neomutt' # open Neomutt mail client
alias tm='tmux' # open Tmux Terminal Multiplexer
# Quick Access to Config Files
alias ne='nvim ~/.zshenv' # edit global zshenv
@@ -79,15 +107,14 @@ alias g='git' # shorthand for git
alias gs='git status' # git status
alias gc='git commit' # git commit
alias gt='git log --oneline --graph --decorate --all' # git log in graph(tree) format
alias lg='lazygit' # open Lazygit
# Docker
alias ld='lazydocker' # open Lazydocker
# Scripts
alias mnt='sh $HOME/.config/scripts/tnmount.sh' # run tnmount.sh script
# Quick access to notes
alias nt='nvim ~/Library/Mobile\ Documents/iCloud~md~obsidian/Documents/Privat/TODO.md' # open TODO list
alias ne='nvim ~/Library/Mobile\ Documents/iCloud~md~obsidian/Documents/Privat/Einkaufsliste.md' # open shopping list
alias nb='nvim ~/Library/Mobile\ Documents/iCloud~md~obsidian/Documents/Privat/Persönliches/Bucketlists/2025.md' # open 2025 bucket list
# Custom Functions
# Start yazi with "y", and when you quit yazi, your shell will "cd" to the folder you navigated to in yazi
function y() {
@@ -103,10 +130,6 @@ function y() {
}
# }}}
# iTerm2 shell integration {{{
source $XDG_CONFIG_HOME/iterm2/.iterm2_shell_integration.zsh # load iTerm2 shell integration (enables iTerm2 features)
# }}}
# Conda initialize {{{
# export PATH="/opt/homebrew/anaconda3/bin:$PATH" # commented out by conda initialize
# >>> conda initialize >>>
@@ -129,3 +152,12 @@ export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
# fzf + fd integration
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
# fzf shell integration (keybindings + completion)
eval "$(fzf --zsh)"