Dotfiles

if you mess up your dotfiles, don't worry, you can copy up-to-date files anytime from here.

Setup Dotfiles

All the settings described in this guide are backed into following dot(.) files

copy zshrc, alias etc., files to your home directory to make life easy.

to finish this task, run the following commands in terminal:

# go to your home directory
cd ~
curl -L https://raw.githubusercontent.com/xmlking/macbooksetup/main/dotfiles/.zshrc -o ~/.zshrc
curl -L https://raw.githubusercontent.com/xmlking/macbooksetup/main/dotfiles/.gitconfig -o ~/.gitconfig
# change `name` and `email` in `.gitconfig` after copying it, with:
git config --global user.name "Your Full Name"
git config --global user.email "Your Email"
curl -L https://raw.githubusercontent.com/xmlking/macbooksetup/main/dotfiles/.config/starship.toml -o ~/.config/starship.toml
mkdir ~/my && cd ~/my
curl -L https://raw.githubusercontent.com/xmlking/macbooksetup/main/dotfiles/my/.gitattributes -o ~/my/.gitattributes
curl -L https://raw.githubusercontent.com/xmlking/macbooksetup/main/dotfiles/my/.gitignore -o ~/my/.gitignore
curl -L https://raw.githubusercontent.com/xmlking/macbooksetup/main/dotfiles/my/aliases.zsh -o ~/my/aliases.zsh
curl -L https://raw.githubusercontent.com/xmlking/macbooksetup/main/dotfiles/my/exports.zsh -o ~/my/exports.zsh
curl -L https://raw.githubusercontent.com/xmlking/macbooksetup/main/dotfiles/my/extra.zsh -o ~/my/extra.zsh
curl -L https://raw.githubusercontent.com/xmlking/macbooksetup/main/dotfiles/my/functions.zsh -o ~/my/functions.zsh
curl -L https://raw.githubusercontent.com/xmlking/macbooksetup/main/dotfiles/my/paths.zsh -o ~/my/paths.zsh

If you want to add paths or exports use respective files in ~/my folder instead of editing ~/.zshrc

Last updated