Skip to content

Commit e8f41b7

Browse files
committed
src2png: faster startup time.
1 parent eb9def6 commit e8f41b7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src2png

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ if [ -z "$1" ]; then
66
fi
77

88
rm -f $1.html
9-
gvim -e $1 -c "set nobackup" \
10-
-c ":colorscheme desert" \
11-
-c :TOhtml \
12-
-c wq -c :q \
9+
gvim -i NONE -X -c -e "set nobackup" \
10+
-c "colorscheme desert" \
11+
-c "tab sview $1" \
12+
-c TOhtml \
13+
-c wq -c q -c q \
1314
|| exit 1
1415

1516
while [ ! -f $1.html ]; do
1617
echo sleeping...
17-
sleep 0.2
18+
sleep 0.1
1819
done
1920

2021
sed 's/background-color: *[^;]*/background-color: #000/g' $1.html > $1.tmp

0 commit comments

Comments
 (0)