From f942311dd5e77f9dfcd5e58c474bd14c216fd58d Mon Sep 17 00:00:00 2001 From: tfheen Date: Tue, 6 Jan 2004 05:15:12 +0000 Subject: [PATCH] gah, handle this better. git-svn-id: file:///svn/tfheen/trunk/dotfiles@266 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- environment | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5