mirror of
https://github.com/fmap/muflax65ngodyewp.onion
synced 2024-07-02 10:50:42 +02:00
22 lines
473 B
Bash
Executable file
22 lines
473 B
Bash
Executable file
#!/bin/zsh
|
|
# Copyright muflax <mail@muflax.com>, 2012
|
|
# License: GNU GPL 3 <http://www.gnu.org/copyleft/gpl.html>
|
|
|
|
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
|