Personal dotfiles for zsh, git, and other configurations.
git clone https://github.com/maximborisov/dotfiles.git ~/dotfiles
cd ~/dotfiles/scripts
chmod +x bootstrap.sh
./bootstrap.sh.zshrc- Main config, sources modular filesaliases.zsh- Shell aliasesexports.zsh- Environment variablesplugins.zsh- Oh My Zsh plugins and theme
.gitconfig- Git aliases and settings
dotfiles/
├── zsh/
│ ├── .zshrc # Main zsh config
│ ├── aliases.zsh # Aliases
│ ├── exports.zsh # Exports and PATH
│ └── plugins.zsh # Plugins and theme
├── git/
│ └── .gitconfig # Git configuration
├── scripts/
│ └── bootstrap.sh # Installation script
└── README.md
Create ~/.zshrc.local for machine-specific settings that won't be tracked:
# ~/.zshrc.local
export CUSTOM_VAR="value"
alias myalias='mycommand'If you prefer not to use the bootstrap script:
-
Install Oh My Zsh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" -
Install plugins:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-completions
-
Link files:
ln -sf ~/dotfiles/zsh/.zshrc ~/.zshrc ln -sf ~/dotfiles/git/.gitconfig ~/.gitconfig
cd ~/dotfiles
git pullPlugins can be updated with:
cd ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions && git pull
cd ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting && git pull
cd ~/.oh-my-zsh/custom/plugins/zsh-completions && git pull