(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 | 
| // ------------------------------------------------------ // | |
| // (1) Object function with `prototype` | |
| // ------------------------------------------------------ // | |
| var Pokemon = function (pokemonName) { | |
| this.name = pokemonName; | |
| }; | |
| Pokemon.prototype.bark = function () { | |
| console.log("Hey, I'm " + this.name); // this here refers to "Pokemon" | 
| #!/bin/bash | |
| # Script for installing tmux on systems where you don't have root access. | |
| # tmux will be installed in $HOME/local/bin. | |
| # It's assumed that wget and a C/C++ compiler are installed. | |
| # exit on error | |
| set -e | |
| TMUX_VERSION=1.8 | 
| def fib(n, fibs=[1, 1]): | |
| if n >= len(fibs): | |
| fibs.append(fib(n - 2) + fib(n - 1)) | |
| return fibs[n] | 
Prereq:
apt-get install zsh
apt-get install git-coreGetting zsh to work in ubuntu is weird, since sh does not understand the source command.  So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |