Skip to content

Instantly share code, notes, and snippets.

@itisrazza
Last active November 2, 2020 22:23
Show Gist options
  • Save itisrazza/d02594455324aef945eadeb310b42825 to your computer and use it in GitHub Desktop.
Save itisrazza/d02594455324aef945eadeb310b42825 to your computer and use it in GitHub Desktop.
Dotfiles Readme

Dotfiles installation

The dotfiles support bash (on Linux) and zsh (on macOS and Linux). These are meant to give me a consistent environment across the UNIX computers I use.

Before starting, make sure the repository isn't going to write over important existing files. It's a good idea to rename .bashrc and .zshrc to .bashrc.local and .zshrc.local.

# Create `.dotfiles` folder
mkdir ~/.dotfiles
cd ~/.dotfiles

# Set up bare Git repo
git init --bare
git remote add origin [email protected]:thegreatrazz/dotfiles.git
git config status.showUntrackedFiles no

# Set up alias (temporarily)
alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME"

# Pull the repo
dotfiles pull origin master

Maintenance

# Add file, commit, push
dotfiles add .zshrc
dotfiles commit
dotfiles push
# Download
dotfiles pull

Acknowledgements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment