Skip to content

crittelmeyer/dotfiles

Repository files navigation

Dotfiles! All the dotfiles I need.

Installation

Highly customized instructions for setting up a new mac to my liking

  • Install Chrome => https://www.google.com/chrome/browser/desktop/
  • Install Spotify => https://www.spotify.com/us/download/mac/
  • Install Postman => https://www.getpostman.com/
  • Install Slack => https://slack.com/downloads
  • Install Dropbox => https://www.dropbox.com/en_GB/downloading?os=mac
  • Install Gyazo and Gyazo GIF => https://gyazo.com/download
  • Install iTerm 2 (> 2.1) => https://www.iterm2.com/4
  • Install XCode => https://itunes.apple.com/us/app/xcode/id497799835?mt=12
  • Install Homebrew => http://brew.sh/
  • Install self-hosted tools => https://github.com/crittelmeyer/dotfiles/tree/master/bin

  • Open iTerm
  • Make iTerm your default terminal in the top menu: iTerm > Make iTerm Default Term
  • Install shell integration & utilities for iTerm in the top menu: iTerm > Install Shell Integration & Utilities
  • Restart iTerm
  • Copy your private and public ssh key(s) to ~/.ssh, chmod 400 ~/.ssh/[key], then eval "$(ssh-agent -s)", then ssh-add -K ~/.ssh/[key]
  • Create ~/Repos directory
  • Pull this dotfiles repo
  • Make brew.sh executable -> chmod +x brew.sh
  • Run brew.sh as sudo to install common tools
  • Optionally run brew-ctf.sh to install pentest/ctf tools
  • Install oh my zsh: sh -c "$(curl -fsSL https://raw.githubusercontent.com/crittelmeyer/dotfiles/master/.oh-my-zsh/tools/install.sh)"
  • Run git submodule init, git submodule sync, git submodule update
  • Copy powerline directory to ~/Repos/
  • Follow README instructions for powerline
  • Follow README instructions for tmux-powerline
  • Update iTerm fonts in preferences to use one of the powerline fonts you installed above
  • Run bootstrap.sh as sudo to sync dotfiles/home dir

  • Change system keyboard settings and update Caps Lock modifier key to map to Ctrl
  • Under iTerm Preferences > Keys > Hotkey, check "Show/hide iTerm2 with a system-wide hotkey" (leave default Alt+Space)
  • Under iTerm Preferences > Advanced > Mouse, change "Scroll wheel sends arrow keys..." to "Yes"
  • Double-click iTerm to maximize without hiding title bar, go to Window > Save Window Arrangement and save as "Default", then Under iTerm Preferences > General > Startup select "Open Default Window Arrangement"
  • Under iTerm Preferences > Profiles > General > Working Directory select "Directory" and type the default project you will be working in i.e. /Users/chrisrittelmeyer/Repos/fe-xmain-client - this allows cmd+clicking of relative file paths
  • Under iTerm Preferences > Profiles > Advanced > Semantic History select "Open with Editor" and choose an editor
  • Under iTerm Preferences > Profiles > Text > Text Rendering - check "Use built-in Powerline glyphs"
  • Might need to: Under iTerm Preferences > Profiles > Text > Unicode - uncheck Unicode version 9 char widths
  • Add special key mappings to iTerm for vim:
  • Ctrl+Space => Send escape sequence: Esc+[29~
  • Shift+Return => Send escape sequence: Esc+[27~
  • Ctrl+Return => Send escape sequence: Esc+[25~

oh-my-zsh Alias/Function Cheat Sheet:

Directories (via .oh-my-zsh/lib/directories.sh)

  • d = lists recently used directories
  • md = mkdir
  • cd +n = switch to directory number n
  • .. = cd ..
  • ... = cd ../..
  • / = cd /

Thefuck (via .oh-my-zsh/plugins/thefuck/thefuck.plugin.zsh)

  • [Esc]x2 = fuck = try to fix last command

zsh_reload (via .oh-my-zsh/plugins/zsh_reload/zsh_reload.plugin.zsh)

  • src ==> sources ~/.zshrc, clears cache

wakeonlan (via .oh-my-zsh/plugins/wakeonlan/wakeonlan.plugin.zsh)

  • wake [machine alias] ==> uses wakeonlan to wake machine defined in ~/.wakeonlan/[machine alias]

web_search (via .oh-my-zsh/plugins/web_search/web-search.plugin.zsh)

  • google [search terms] ==> does google search
  • github [search terms] ==> does github search

git cheatsheet/shortcuts

vim cheatsheet/shortcuts/plugins

tmux/tmuxinator cheatsheet/shortcuts

jira cheatsheet

rvm cheatsheet

https://gist.github.com/crittelmeyer/78cf2c167c963d279ae8

linux tools

https://gist.github.com/crittelmeyer/6acae5aeec3e1ec210ce

rails cheatsheet/shortcuts

node/npm cheatsheet/shortcuts

https://gist.github.com/crittelmeyer/e3e8f58f5808fca8ba2aeda1509a877a

docker/docker-compose/docker-machine cheatsheet/shortcuts

TODO

vagrant cheatsheet/shortcuts

TODO

puppet cheatsheet/shortcuts

TODO

About

All my config dotfiles such as .bashrc and .gitconfig

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published