Skip to content

Latest commit

 

History

History
126 lines (87 loc) · 3.88 KB

README.md

File metadata and controls

126 lines (87 loc) · 3.88 KB

Justin's dotfiles

Hello future Justin! If you're here, it means you're configuring a new box. Nice! Past Justin is jealous of you :)

Quickstart

Update packages

sudo apt update

Upgrade packages

sudo apt upgrade -y     # get coffee here

Copy your keys from Github

vim ~/.ssh/id_ed25519    # copy keys over (or make new keys)

Set zsh as your login shell:

chsh -s $(which zsh)

Clone onto your laptop:

git clone git@github.com:notjustinshaw/dotfiles.git ~/.dotfiles

Install rcm:

sudo apt install rcm

Install the dotfiles:

env RCRC=$HOME/.dotfiles/rcrc rcup

Install tailscale

curl -fsSL https://tailscale.com/install.sh | sh

Join the VPN

sudo tailscale up

What's in it?

vim configuration:

  • fzf for fuzzy file/buffer/tag finding.
  • Rails.vim for enhanced navigation of Rails file structure via gf and :A (alternate), :Rextract partials, :Rinvert migrations, etc.
  • Run many kinds of tests from vim
  • Set <leader> to a single space.
  • Switch between the last two files with space-space.
  • Syntax highlighting for Markdown, HTML, JavaScript, Ruby, Go, Elixir, more.
  • Use Ag instead of Grep when available.
  • Map <leader>ct to re-index ctags.
  • Use vim-mkdir for automatically creating non-existing directories before writing the buffer.
  • Use vim-plug to manage plugins.

tmux configuration:

  • Improve color resolution.
  • Remove administrative debris (session name, hostname, time) in status bar.
  • Set prefix to Ctrl+s
  • Soften status bar color from harsh green to light gray.

git configuration:

  • Adds a create-branch alias to create feature branches.
  • Adds a delete-branch alias to delete feature branches.
  • Adds a merge-branch alias to merge feature branches into master.
  • Adds an up alias to fetch and rebase origin/master into the feature branch. Use git up -i for interactive rebases.
  • Adds post-{checkout,commit,merge} hooks to re-index your ctags.
  • Adds pre-commit and prepare-commit-msg stubs that delegate to your local config.
  • Adds trust-bin alias to append a project's bin/ directory to $PATH.

Shell aliases and scripts:

  • c for clear.
  • g with no arguments is git status and with arguments acts like git.
  • mcd to make a directory and change into it.
  • replace foo bar **/*.rb to find and replace within a given list of files.
  • tat to attach to tmux session named the same as the current directory.
  • v for $VISUAL (currently an alias for vim).
  • ga for git add --all.
  • gc <msg> for `git commit -m "" (can use without quotes).
  • gp for git push.

Thanks to Thoughtbot!

Thank you, contributors! Also, thank you to Corey Haines, Gary Bernhardt, and others for sharing your dotfiles and other shell scripts from which we derived inspiration for items in this project.

License

dotfiles is copyright © 2009-2018 thoughtbot. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About thoughtbot

thoughtbot

dotfiles is maintained and funded by thoughtbot, inc. The names and logos for thoughtbot are trademarks of thoughtbot, inc.

We love open source software! See our other projects. We are available for hire.