This repository contains my personal dotfiles. These configurations help set up a development environment quickly and efficiently.
Brewfile
: List of packages and applications to install via Homebrewgit/gitconfig
: Git configurationzsh/zshrc
: ZSH configurationzsh/theme/yatish.zsh-theme
: Custom ZSH thememac-setup.sh
: Script to set macOS preferenceszsh-setup.sh
: Script to set up Zsh, Oh My Zsh, and custom themevscode-setup.sh
: Script to set up VSCode settings and extensionsvscode/settings.json
: VSCode settingsvscode/extensions.txt
: List of VSCode extensions to installLICENSE.md
: MIT License for the project
Follow these steps to install and set up the dotfiles:
-
Clone this repository:
mkdir -p ~/code && cd ~/code && git clone https://github.com/yatish27/dotfiles.git
-
Install Homebrew (if not already installed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Install essential tools and applications using Brewfile:
cd ~/code/dotfiles brew bundle
-
Set up Zsh, Oh My Zsh, and custom theme:
./zsh-setup.sh
-
Install desired languages and tools with asdf:
asdf plugin add nodejs asdf install nodejs latest asdf global nodejs latest asdf plugin add ruby asdf install ruby latest asdf global ruby latest
-
Set macOS preferences:
./mac-setup.sh
-
Set up VSCode:
Make sure you have the
code
command-line tool installed. If not, open VSCode, press Cmd+Shift+P, and run "Shell Command: Install 'code' command in PATH".Then run the VSCode setup script:
./vscode-setup.sh
This will copy your settings and install your extensions.
-
Restart your terminal or run
source ~/.zshrc
to apply the changes.
Feel free to modify any of the dotfiles to suit your preferences. The main configuration files are:
-
Shell Configuration
zsh/zshrc
: ZSH configurationzsh/theme/yatish.zsh-theme
: Custom ZSH theme
-
Git Configuration
git/gitconfig
: Git configuration (remember to update with your name and email)
-
Package Management
Brewfile
: List of packages and applications to install via Homebrew
-
macOS Settings
mac-setup.sh
: Script to set macOS preferences
-
VSCode Configuration
vscode-setup.sh
: Script to set up VSCode settings and extensionsvscode/settings.json
: VSCode settingsvscode/extensions.txt
: List of VSCode extensions to install
To update your dotfiles:
-
Pull the latest changes from the repository:
cd ~/code/dotfiles git pull origin main
-
Copy the updated configuration files:
cp ~/code/dotfiles/zsh/zshrc ~/.zshrc cp ~/code/dotfiles/git/gitconfig ~/.gitconfig cp ~/code/dotfiles/zsh/theme/yatish.zsh-theme ~/.oh-my-zsh/themes/
-
If there are changes to the Brewfile, run:
brew bundle
-
If there are changes to VSCode settings or extensions, run:
./vscode-setup.sh
-
Restart your terminal or run
source ~/.zshrc
to apply the changes.
If you have any suggestions or improvements, feel free to open an issue or submit a pull request.
This project is open source and available under the MIT License.