RichardMcSorley / dotfiles

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Vim Snippet 54.3%Language:Lua 27.7%Language:Vim Script 14.6%Language:Shell 3.1%Language:Scheme 0.2%