muflax65ngodyewp.onion/session.sh

22 lines
473 B
Bash
Raw Normal View History

2012-02-12 16:07:15 +01:00
#!/bin/zsh
# Copyright muflax <mail@muflax.com>, 2012
# License: GNU GPL 3 <http://www.gnu.org/copyleft/gpl.html>
2012-07-27 22:17:15 +02:00
site=$1
2012-04-12 19:00:22 +02:00
if [[ -z $1 ]]; then
2012-07-27 22:17:15 +02:00
echo "defaulting to daily..."
site="daily"
2012-04-12 19:00:22 +02:00
fi
2012-07-27 22:17:15 +02:00
if [[ $site -eq "daily" ]]; then
# work on last log
nanoc last
fi
2012-02-12 16:07:15 +01:00
2012-07-27 22:17:15 +02:00
# 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