My personal setup. Vim, Tmux, Shells, etc.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ack
ag
desktop
docs
pc
profile
software/sublime
terminal
tmux
tools
vim
zsh
.eslintrc.yml
README.md
docs.md
makefile
profile.sh
setup.sh

README.md

dotfiles

My setup for MacOSX and Linux, with a focus on terminal, editor, shell, programming environments etc.

Screenshot on MacOSX

Screensho: MacOSX

Screenshot on Ubuntu

Screenshot: Ubuntu

Introduction

The goal of this project is to provide a single command which will setup key features of the system. Each feature should be orthogonal and not depend on other features. Each feature should be optional and installed only if the user specifies.

The following is set up:

  • zsh as the default shell
  • tmux for terminal multiplexing, with my preferred theme and settings
  • vim as the default editor, with my preferred theme and settings
  • ~/.private as a folder excluded from version control, the contents of which are always loaded on shell startup (ideal for project specific secrets etc)
  • ~/.profile as a version controlled folder, the contents of which are always loaded on shell startup

Installing or Updating

First clone the repo:

git clone git@github.com:dwmkerr/dotfiles

Then run setup:

./setup.sh

A variety of tools required to support common coding requirements (Node Version Manager, Golang, Docker etc) are installed.

Shell Commands

The following shell commands are setup:

Command Usage
serve Serve the current folder over HTTP on port 3000.
restart-shell Restart the current shell, reloading ~/.private, ~/.profile etc.

Cheat Sheet - TMux

  • Ctrl+B / Ctrl+S - Save Tmux Session
  • Ctrl+B / Ctrl+R - Restore Tmux Session
  • Ctrl+h/j/k/l - Navigate splits (vim aware)
  • Ctrl+/ - Last split
  • Ctrl+B h - Move window left
  • Ctrl+B l - Move window right
  • Ctrl+B { - Swap pane left
  • Ctrl+B } - Swap pane right

Cheat Sheet - Vim

Command Usage
\[<Space> blank line above
]<Space> blank line below
sj Splitjoin down (i.e. split a line downwards).
sk Splitjoin up (i.e. join a line upwards).
<leader>r Open current file in NERDTree.
<leader>w Write buffer.
<leader>\\ Open buffer in new tab.
<leader>d Open word under cursor in Dash.
<leader>t Show current buffer in NERDTree.
:Tabularize /= Line up selection, using '='
gd where possible, will go to a local definition.

Cheat Sheet

Here's a quick reference. My <Leader> is \, so I've written shortcuts as \x rather than <Leader>x for brevity. I still need to port the above to the structure below.

Shortcut Usage
Markdown Tables
\tm Enter/Exit 'table mode', which will dynamically format markdown tables.
ci| Example of the motion for cells - i.e. 'change-in-cell'.

Note: including the vertical pipe | in the table above would cause rendering issues. So instead, the unicode character is used to illustrate the commands. Do not use the unicode character, use the normal ASCII 0x7C character.

Plugins

This is a new list, it'll take some time to bring others up to date.