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 (
.bak
extension) - 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
.zshrc
configuration uses the "robbyrussell" theme by default. You can change it by modifying theZSH_THEME
variable.
This project is licensed under the MIT License - see the LICENSE file for details.