dotfiles
Minimal dotfiles for Ubuntu VMs with zsh, tmux, and Oh-My-Zsh configuration.
Features
- zsh as default shell with:
- Oh-My-Zsh framework
- Syntax highlighting
- Auto-suggestions
- Command correction
- tmux with:
- Ctrl+a as prefix key
- Mouse support
- Vi mode
- Easy config reload (prefix + r)
- Auto-switch from bash to zsh (appended to existing .bashrc)
- Automatic backup of existing dotfiles
Installation
git clone <your-repo-url> ~/dotfiles
cd ~/dotfiles
chmod +x install.sh
./install.shWhat it does
- Backs up existing dotfiles to
~/.dotfiles_backup_<timestamp> - Installs zsh, tmux, and required plugins
- Installs Oh-My-Zsh framework
- Creates symlinks for configuration files
- Modifies .bashrc to auto-switch to zsh on login
Files
install.sh- Installation scriptzshrc- Zsh configurationtmux.conf- Tmux configuration
How it handles .bashrc
The installer preserves your existing .bashrc and appends a small snippet that:
- Automatically switches to zsh when you log in
- Only switches if zsh is installed and available
- Won't add duplicate entries if you run the installer multiple times
No need to change your default shell with chsh - the auto-switch handles everything!
Post-installation
After installation, either:
- Log out and log back in, or
- Run
exec zshto start using zsh immediately