/dotfiles

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

Primary LanguageVim Snippet

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