From: tfheen Date: Tue, 6 Jan 2004 05:15:12 +0000 (+0000) Subject: gah, handle this better. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f942311dd5e77f9dfcd5e58c474bd14c216fd58d;p=dotfiles gah, handle this better. git-svn-id: file:///svn/tfheen/trunk/dotfiles@266 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/environment b/environment index 7131a82..28e79af 100644 --- a/environment +++ b/environment @@ -26,7 +26,9 @@ blog () { else SUBJ="blank_subject" fi - FILE=$HOME/blog/$CAT/$(date +"%Y-%m-%d-%H-%M")_$SUBJ.txt + DIR=$HOME/blog/$CAT/ + FILE=$(date +"%Y-%m-%d-%H-%M")_$SUBJ.txt + cd $DIR $EDITOR $FILE cvs add $FILE cvs ci -m"Initial commit" $FILE