start new:
tmux
start new with session name:
tmux new -s myname
#! /bin/bash | |
# usage: monssh [hostname] | |
if [[ -z $1 ]] | |
then | |
HOST="YOURHOST" | |
else | |
HOST=$1 | |
fi |
function rm () { | |
local path | |
for path in "$@"; do | |
# ignore any arguments | |
if [[ "$path" = -* ]]; then : | |
else | |
local dst=${path##*/} | |
# append the time if necessary | |
while [ -e ~/.Trash/"$dst" ]; do | |
dst="$dst "$(date +%H-%M-%S) |
#!/bin/sh | |
# 初期設定 | |
EMACS_VER=24.2 | |
WORK_DIR=$HOME/Builds/Emacs | |
BUILD_DIR=$WORK_DIR/build | |
PATCH_DIR=$WORK_DIR/patch | |
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
export CC='/usr/bin/clang' |
(defun cleanup-buffer-safe () | |
"Perform a bunch of safe operations on the whitespace content of a buffer. | |
Does not indent buffer, because it is used for a before-save-hook, and that | |
might be bad." | |
(interactive) | |
(untabify-buffer) | |
(delete-trailing-whitespace) | |
(set-buffer-file-coding-system 'utf-8)) | |
(defun cleanup-buffer () |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
/* | |
12306 Auto Query => A javascript snippet to help you book tickets online. | |
Copyright (C) 2011-2012 Jingqin Lynn | |
Includes jQuery | |
Copyright 2011, John Resig | |
Dual licensed under the MIT or GPL Version 2 licenses. | |
http://jquery.org/license | |
Includes Sizzle.js |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
Install Homebrew
http://mxcl.github.com/homebrew/
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
brew help
cd ~
mate .bashrc