summaryrefslogtreecommitdiffstats
path: root/blogit
blob: 605b088b8b56ff2eb072fad145d9277e636da4f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/zsh
DIR="/media/sate/srv/http/lighty/blog/"
pushd $HOME/.posts
echo "Post name"
read post
if [[   -f $DIR/$post ]];then
    /usr/bin/vim $DIR/$post
else
    /usr/bin/vim $post
    cp $post $DIR/
fi
popd