/dotfiles

Handling corpo dotfiles like a pro perrazo.

Primary LanguageShellMIT LicenseMIT

Introduction

Home of my dotfiles, second iteration, using GNU Stow.

Pre-requisites

Darwin

Apple dev tools

xcode-select --install

Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

All

Oh my zsh is cool

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Setup

  1. Clone repo, it's built around the assumption that it lives in your $HOME folder.
git clone https://github.com/radiotaiso/dotfiles.git ~/.dotfiles
  1. Install brewfile
brew bundle --file ~/.dotfiles/bin/bundles/Brewfile
  1. Execute da_wae. This script will stash unsaved stuff, pull from main, pop the stash and then the magic of stow.
./bin/da_wae

Useful extras

Archived utilities under bin/stock-sux

Set-upstream is annoying

From git 2.37.0 you can forget about the --set-upstream <branch_name> with a simple one time command

git config --global --add --bool push.autoSetupRemote true

Now, the branch will be automatically created when push

How to update brewfile

If you already have one brewfile in the same path there's a paddlin'

# Bundle files live here
cd ~/.dotfiles/bin/bundles 
brew bundle dump

MacOS tips

Chale zone, this fix only works for intel based Macs. Once again i am the bringer of my own demise but also screw you Tim apple.

# Fuck autoboot, all my homies have to push the button to boot
sudo nvram AutoBoot=%00 # Disable, %03 is default for enabled

# Silent boot? Hell yeah
sudo nvram BootAudio=%00 # Disable, enabled is %01

Sources