#!/bin/zsh # Copyright muflax , 2012 # License: GNU GPL 3 site=$1 if [[ -z $1 ]]; then echo "defaulting to daily..." site="daily" fi if [[ $site -eq "daily" ]]; then # work on last log nanoc last fi # start a screen session and set up basic tools tmux new-session "nanoc view -s $site" \; \ neww "nanoc watch -s $site" \; \ set default-path "$(pwd)" \; set -g -a update-environment ' PWD' \; \ neww