Skip to content

Instantly share code, notes, and snippets.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@graemearthur
graemearthur / bash
Created September 13, 2012 22:22 — forked from mklabs/bash
docs simple as cake
#!/bin/bash
# this script install itself (npm package), create a tasks/docs.js, install the docs' task dependencies,
# and run the gh-pages task.
#
# Install:
#
# curl https://raw.github.com/gist/1332036/70f8f3f9b85082569aff7f10773fc40e2fd7388d/bash | sh
#
# It'll generate documentation based on the likely location of
@graemearthur
graemearthur / gist:3718142
Created September 13, 2012 22:21
Bash Shell Script Template
#!/bin/bash
# Author: Craig Russell
# Email: craig@craig-russell.co.uk
# Date: yyyy-mm-dd
# Usage: script.sh [-a|--alpha] [-b=val|--beta=val]
# Description:
#
#
#
@graemearthur
graemearthur / template-basic
Created September 13, 2012 22:19 — forked from Gen2ly/template-basic
Description of script
#!/bin/bash
# Description of script
# Display usage if no parameters given
if [[ -z "$@" ]]; then
echo " ${0##*/} <input> - description"
exit
fi
# Required program(s)