Hello future Justin! If you're here, it means you're configuring a new box. Nice! Past Justin is jealous of you :)
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
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 rebaseorigin/master
into the feature branch. Usegit up -i
for interactive rebases. - Adds
post-{checkout,commit,merge}
hooks to re-index your ctags. - Adds
pre-commit
andprepare-commit-msg
stubs that delegate to your local config. - Adds
trust-bin
alias to append a project'sbin/
directory to$PATH
.
Shell aliases and scripts:
c
forclear
.g
with no arguments isgit status
and with arguments acts likegit
.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
forgit add --all
.gc <msg>
for `git commit -m "" (can use without quotes).gp
forgit push
.
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.
dotfiles is copyright © 2009-2018 thoughtbot. It is free software, and may be
redistributed under the terms specified in the LICENSE
file.
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.