Skip to content

Instantly share code, notes, and snippets.

View s33dunda's full-sized avatar
🎯
Focusing

Charles Dunda s33dunda

🎯
Focusing
View GitHub Profile
@s33dunda
s33dunda / cfg-install
Created December 5, 2018 16:16
Install configuration files from git
git clone --bare https://github.com/s33dunda/.cfg.git $HOME/.cfg
function config {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";
@s33dunda
s33dunda / cfg-init
Created December 5, 2018 15:58
For initing config tracking
git init --bare $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.zshrc

Keybase proof

I hereby claim:

  • I am s33dunda on github.
  • I am cdunda (https://keybase.io/cdunda) on keybase.
  • I have a public key ASCfM4WmdmRJmOBd1ovJO_T_o_J8WcEkPSra7P8F1Orpkgo

To claim this, I am signing this object: