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 [email protected]: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
gfand:A(alternate),:Rextractpartials,:Rinvertmigrations, 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>ctto 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-branchalias to create feature branches. - Adds a
delete-branchalias to delete feature branches. - Adds a
merge-branchalias to merge feature branches into master. - Adds an
upalias to fetch and rebaseorigin/masterinto the feature branch. Usegit up -ifor interactive rebases. - Adds
post-{checkout,commit,merge}hooks to re-index your ctags. - Adds
pre-commitandprepare-commit-msgstubs that delegate to your local config. - Adds
trust-binalias to append a project'sbin/directory to$PATH.
Shell aliases and scripts:
cforclear.gwith no arguments isgit statusand with arguments acts likegit.mcdto make a directory and change into it.replace foo bar **/*.rbto find and replace within a given list of files.tatto attach to tmux session named the same as the current directory.vfor$VISUAL(currently an alias for vim).gaforgit add --all.gc <msg>for `git commit -m "" (can use without quotes).gpforgit 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.