Merge acbca32908 into b1a2273289
commit
a9c9c6bd0a
|
|
@ -80,7 +80,7 @@ S () { # SAVE a BOOKMARK
|
||||||
about 'save a bookmark'
|
about 'save a bookmark'
|
||||||
group 'dirs'
|
group 'dirs'
|
||||||
|
|
||||||
sed "/$@/d" ~/.dirs > ~/.dirs1;
|
sed "/^$@=/d" ~/.dirs > ~/.dirs1;
|
||||||
\mv ~/.dirs1 ~/.dirs;
|
\mv ~/.dirs1 ~/.dirs;
|
||||||
echo "$@"=\"`pwd`\" >> ~/.dirs;
|
echo "$@"=\"`pwd`\" >> ~/.dirs;
|
||||||
source ~/.dirs ;
|
source ~/.dirs ;
|
||||||
|
|
@ -90,7 +90,7 @@ R () { # remove a BOOKMARK
|
||||||
about 'remove a bookmark'
|
about 'remove a bookmark'
|
||||||
group 'dirs'
|
group 'dirs'
|
||||||
|
|
||||||
sed "/$@/d" ~/.dirs > ~/.dirs1;
|
sed "/^$@=/d" ~/.dirs > ~/.dirs1;
|
||||||
\mv ~/.dirs1 ~/.dirs;
|
\mv ~/.dirs1 ~/.dirs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,12 +67,6 @@ newpost() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$SITE" ]
|
|
||||||
then
|
|
||||||
echo "No such site."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
loc=0
|
loc=0
|
||||||
|
|
||||||
for site in ${SITES[@]}
|
for site in ${SITES[@]}
|
||||||
|
|
@ -86,6 +80,12 @@ newpost() {
|
||||||
loc=$(($loc+1))
|
loc=$(($loc+1))
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ -z "$SITE" ]
|
||||||
|
then
|
||||||
|
echo "No such site."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
# 'builtin cd' into the local jekyll root
|
# 'builtin cd' into the local jekyll root
|
||||||
|
|
||||||
builtin cd "$SITE/_posts"
|
builtin cd "$SITE/_posts"
|
||||||
|
|
@ -294,7 +294,7 @@ function testsite() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
builtin cd $SITE
|
builtin cd $SITE
|
||||||
jekyll --server --auto
|
jekyll serve
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildsite() {
|
function buildsite() {
|
||||||
|
|
@ -327,7 +327,7 @@ function buildsite() {
|
||||||
|
|
||||||
builtin cd $SITE
|
builtin cd $SITE
|
||||||
rm -rf _site
|
rm -rf _site
|
||||||
jekyll --no-server
|
jekyll build
|
||||||
}
|
}
|
||||||
|
|
||||||
function deploysite() {
|
function deploysite() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue