Skip to content

My preferred configuration files and setup scripts to easily setup a new Mac/Linux machine

Notifications You must be signed in to change notification settings

RichardMcSorley/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Setup your new mac:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/RichardMcSorley/dotfiles/mac/init.sh)"

Setup git directory:

git clone --bare https://github.com/RichardMcSorley/dotfiles.git
mv dotfiles.git dotfiles
# add an alias in your bashrc or bash_profile
alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
source .bash_profile
config config --local status.showUntrackedFiles no # dont track all the files

Usage example:

config checkout -b ubuntu
config add .bashrc
config commit -m "Added bashrc file"
config push origin ubuntu

Pulling a single file

config status # lists files
config reset HEAD .bashrc
config checkout -- .bashrc

About

My preferred configuration files and setup scripts to easily setup a new Mac/Linux machine

Resources

Stars

Watchers

Forks