Clone this repository into the root of your Dropbox account.
$ git clone git@github.com:emson/dotfiles.git ~/Dropbox/
Then open the terminal and navigate to your cloned dotfiles
directory:
$ cd ~/Dropbox/dotfiles
$ assign_all.sh
NB If you already have a ~/.ssh/
directory you will have to manually move it.
Just to remind myself of all the packages I usually need to install when switching to a new machine.
Install with this command:
$ git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
$ exec $SHELL -l
Install with this command:
$ git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
$ rbenv install 1.9.3-p327
$ rbenv rehash
$ rbenv global 1.9.3-p327
Install with this command:
$ ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
$ brew install ack
- https://github.com/emson/vimben - see installation
$ brew install tmux
// sometimes installing tmux has an error if so run this:
$ brew unlink libevent && brew link libevent
$ brew install reattach-to-user-namespace
Also install Tmux plugins:
Add the plugins to the bottom of your .tmux.conf
file then remember to install with:
prefix + I
Key bindings
prefix + Ctrl-s or prefix + Alt-s - save
prefix + Ctrl-r or prefix + Alt-r - restore
Key bindings
prefix + y - copies text from the command line to clipboard.
Copy mode bindings:
y - copy selection to system clipboard
Ctrl-y - "put" selection - equivalent to copying a selection, and pasting it to the command line
Alt-y - performs both of the above: copy to system clipboard and put to command line
Search
prefix + / - regex search (strings work too)
Example search entries:
foo - searches for string foo
[0-9]\\+ - regex search for numbers (notice + is escaped with 2 x \)
Grep is used for searching. Escape regex characters with 2 backslashes. Searches are case insensitive. Predefined searches
prefix + ctrl-f - simple *f*ile search
prefix + ctrl-g - jumping over *g*it status files (best used after git status command)
prefix + ctrl-u - *u*rl search
prefix + ctrl-d - number search (mnemonic d, as digit)
prefix + ctrl-r - "*r*ails server" request search
These start "copycat mode" and jump to first match. "Copycat mode" bindings
These are enabled when you search with copycat:
n - jumps to the next match
N - jumps to the previous match
To copy a highlighted match:
Enter - if you're using Tmux vi mode
Tmate is a Tmux fork, that enables remote pairing through Tmux.
-
$ brew update $ brew tab nviennot/tmate $ brew install tmate
Usage just run tmate -f ~/.tmate.conf
from the commandline.
To see the log messages once you have started Tmate:
$ tmate show-messages
If you get an error try:
$ brew reinstall pkg-config autoconf automake
$ brew reinstall libtool