Skip to content

Instantly share code, notes, and snippets.

@drxzcl
Last active January 7, 2020 20:10
Show Gist options
  • Select an option

  • Save drxzcl/746433eb0438f3604a376ba93f633279 to your computer and use it in GitHub Desktop.

Select an option

Save drxzcl/746433eb0438f3604a376ba93f633279 to your computer and use it in GitHub Desktop.
# Drop custom dotfiles onto a new shell
sudo apt install -y git vim
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
echo ".cfg" >> .gitignore
git clone --bare https://github.com/drxzcl/conf.git $HOME/.cfg
config checkout
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment