Skip to content

timstott/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.files 🚀

Packages and configuration to make a machine feel like home (compatible with Linux/MacOS)

TOC

Installation

MacOS

  • Install Nix Package Manager in multi-user mode, docs
  • Install Home Manager docs

iTerm2 Setup

  • Change font to Droid Sans Mono for PowerLine located in fonts directory
  • Change theme to Solarized Dark located in iterm2 directory

NeoVim

Mnemonic key bindings inspired by Spacemacs

<SPACE>- MapLeader

Project

binding description
<leader>pt open project tree
<leader>pl open project tree at current buffer location

File

binding description
<leader>ff find file
<leader>fa open alternate file
<leader>fp copy relative file path to clipboard

Buffers

binding description
<leader>q quit buffer
<leader>w write buffer
<leader>bb find opened buffers
<leader>bd delete buffer

Search

binding description
<leader>ps interactive search
<leader>pS search project with word under cursor
// clear highlight search

Formatting

binding description example
ga interactively align visual selection 🔗 vipga

Miscellaneous

binding description
vv vertical split
ss horizontal split

Tmux

  • Bind key Ctrl-a (like GNU screen)
  • Vi navigation
  • Preserve current directory on splits

Git

  • Git hook to re-index ctags post-checkout
  • Manually re-index ctags git ctags

TIP: Use git init in existing repos to copy the hooks

ZSH

Aliases

Aliases inspired by Oh My Zsh plugins.

Ruby

  • be - bundle exec
  • zs - zeus start
  • zc - zeus console

Git

  • gco - checkout
  • gci - interactive branch checkout (fzf)
  • gst - status
  • gb - branch
  • gc - commit
  • gcs - sign commit
  • gca - stage and commit
  • gcas - stage, sign and commit
  • gc! - amend and commit
  • gcs! - amend, sign and commit
  • gca! - stage, amend and commit
  • gcas! - stage, amend, sign and commit
  • gfa - fetch all branches and tags
  • grbc - rebase continue
  • grba - rebase abort
  • grbi - interactive rebase (fzf)

Docker

  • docker-stop-all-containers - stop all running containers
  • docker-remove-all-containers - remove all containers

Secrets

Store secret environment variables in ~/.secrets. The file, when present, is sourced by zshrc.


Credits