dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

calendar.sh (207B)


      1 #!/bin/sh
      2 set -e
      3 cd "${HOME}/.calendar"
      4 git pull
      5 if test "$TMUX"; then
      6 	tmux split-window -l 9 "cal -wm; sh" \; select-pane -U
      7 fi
      8 $EDITOR "${HOME}/.calendar/calendar"
      9 git commit -a -m 'auto commit'
     10 git push