Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tap "max-sixty/worktrunk"

brew "stow"
brew "htop"
brew "ripgrep"
brew "wget"
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ dotfiles
========

```
git clone https://github.com/clutchski/dotfiles
git clone git@github.com:clutchski/dotfiles.git
cd dotfiles
./deploy.sh
./install.sh
```

or
After changes:

```
git clone git@github.com:clutchski/dotfiles.git
cd dotfiles
./deploy.sh
./update.sh
```
File renamed without changes.
44 changes: 0 additions & 44 deletions deploy.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions git/.stow-local-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Override stow's default ignores to allow .gitignore
\.git
\.gitmodules
32 changes: 32 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash

set -e

DOTFILES_DIR="$(cd "$(dirname "$0")" && pwd)"

# Install Homebrew packages (includes stow)
if ! brew bundle check --file="$DOTFILES_DIR/Brewfile" > /dev/null 2>&1; then
brew bundle --file="$DOTFILES_DIR/Brewfile"
fi

# Install oh-my-zsh if needed
if [ ! -d ~/.oh-my-zsh ]; then
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
fi

# Stow all packages
"$DOTFILES_DIR/update.sh"

# Install vim-plug
if [ ! -f ~/.vim/autoload/plug.vim ]; then
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi
vim +'PlugInstall --sync' +qa

# Configure git
git config --global core.excludesfile ~/.gitignore

if [[ "$(hostname)" == bt* ]]; then
git config --global user.email "matt@braintrustdata.com"
fi
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions tool-versions

This file was deleted.

12 changes: 12 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -e

DOTFILES_DIR="$(cd "$(dirname "$0")" && pwd)"
PACKAGES=(shell git vim ssh python screen mise worktrunk iterm oh-my-zsh claude)

cd "$DOTFILES_DIR"

for pkg in "${PACKAGES[@]}"; do
stow -t ~ -R "$pkg"
done
File renamed without changes.
File renamed without changes.
File renamed without changes.