This repository contains my personal dotfiles for maintaining a consistent development environment across different machines.
- Clone the repository:
git clone https://github.com/omeralpi/dotfiles.git ~/dotfiles- Run the sync script:
cd ~/dotfiles
chmod +x sync.sh
./sync.sh.gitconfig: Git configuration and aliases.gitignore_global: Global Git ignore patterns.zshrc: ZSH shell configuration with Oh My Zshsync.sh: Synchronization script
The sync.sh script automatically:
- Creates symbolic links from dotfiles to your home directory
- Backs up existing configuration files (
.bakextension) - Syncs changes with the remote repository
Useful Git aliases included in .gitconfig:
git s: Short status viewgit l: View last 20 commits with graphgit ll: Detailed log with graph and author infogit uncommit: Undo last commit (keeps changes staged)git unstage: Remove files from staging areagit go <branch>: Switch/create branchgit amend: Amend last commitgit hotfix: Amend and force push (use carefully!)
- Git
- Zsh
- Oh My Zsh
- curl (for Oh My Zsh installation)
- Install Oh My Zsh (if not already installed):
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"- The included
.zshrcconfiguration uses the "robbyrussell" theme by default. You can change it by modifying theZSH_THEMEvariable.
This project is licensed under the MIT License - see the LICENSE file for details.