Refactor dotfiles - 2026-01-18

Changes:
- Refactored .zshrc into modular oh-my-zsh/custom/ files
- Created aliases.zsh, functions.zsh, path.zsh, keybindings.zsh
- Added bira-time.zsh-theme (bira with timestamp)
- Added tools/*.zsh for pyenv, nvm, kubectl
- Updated .tmux.conf.local with cross-platform support
- Updated gpakosz/.tmux framework
- Cleaned up .zshenv
This commit is contained in:
Viktor Barzin 2026-01-18 14:23:48 +00:00
parent 58ef6d327f
commit 47120112ad
12 changed files with 811 additions and 453 deletions

View file

@ -0,0 +1,10 @@
# Kubectl configuration
# Auto-loaded by oh-my-zsh from $ZSH_CUSTOM/tools/
# Note: This must run after compinit, which oh-my-zsh handles
if command -v kubectl >/dev/null 2>&1; then
source <(kubectl completion zsh)
fi
# Load golang path if exists
[[ -f /etc/profile.d/golang_path.sh ]] && source /etc/profile.d/golang_path.sh

View file

@ -0,0 +1,6 @@
# NVM (Node Version Manager) configuration
# Auto-loaded by oh-my-zsh from $ZSH_CUSTOM/tools/
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"

View file

@ -0,0 +1,23 @@
# Pyenv configuration
# Auto-loaded by oh-my-zsh from $ZSH_CUSTOM/tools/
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv >/dev/null 2>&1; then
eval "$(pyenv init - zsh)"
fi
# Virtualenvwrapper
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
export VIRTUALENV_PYTHON=python3
export WORKON_HOME=$HOME/.virtualenvs
if [[ -f /usr/local/bin/virtualenvwrapper.sh ]]; then
source /usr/local/bin/virtualenvwrapper.sh
elif [[ -f $HOME/.virtualenvwrapper.sh ]]; then
source $HOME/.virtualenvwrapper.sh
fi
# Python debugging
export PYTHONBREAKPOINT=ipdb.set_trace