Skip to content

Drew-Daniels/dotfiles

Repository files navigation

Installation Process on a New Machine

Setup GitHub Authentication & clone the repo

Create a GitHub Personal Access Token

Use this token when cloning this repo instead of my GitHub password.

mkdir ~/projects
cd ~/projects
git clone https://github.com/Drew-Daniels/dotfiles.git
cd dotfiles

# Adds .gitignored files that will vary by machine, or contain secrets
# And sets up ~/.zshrc and ~/.gitconfig files to source configs from 'dotfiles'
./scripts/setup.sh

Configure local environment

machine=work

sed -i -e "s/.*MACHINE*.*/MACHINE=$machine/" .env.local

Restart terminal (to pick up changes to ~/.zshrc)

Install homebrew

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

Install dependencies managed with homebrew-file

brew install rcmdnk/file/brew-file

brew file install

Install iTerm2

Configure: CMD+, > General > Settings:

  • Check Load settings from custom folder or URL
  • Set path to <absolute-path-to-home-folder>/projects/dotfiles/iterm2
  • Set "Save Changes" option to "When Quitting"

Install lua 5.1

curl -LO http://www.lua.org/ftp/lua-5.1.5.tar.gz
tar xvzf lua-5.1.5.tar.gz
cd lua-5.1.5
make macosx
make test
sudo make install
make local

Install luarocks

wget https://luarocks.org/releases/luarocks-3.11.1.tar.gz
tar zxpf luarocks-3.11.1.tar.gz
cd luarocks-3.11.1
./configure && make && sudo make install
sudo luarocks install luasocket

Install luarocks modules

# https://github.com/3rd/image.nvim
luarocks install --local magick

Configuring tmux:

cd ~/projects/dotfiles

# clone tpm plugins. These are not included in the repo so they need to be cloned manually
git clone https://github.com/tmux-plugins/tpm.git tmux/plugins/tpm
git clone https://github.com/nordtheme/tmux.git tmux/plugins/tmux
# any others

Launch tmux and run <PREFIX> + I to reload the config

Restart

sudo shutdown -r now

About

Behold

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published