Skip to content
Browse files

Addde dot2png, makeline

  • Loading branch information...
1 parent 836209b commit 1f25b5b57a2ec64faa6f520ff05ba2535b7491ed @dbrady committed Apr 3, 2012
Showing with 20 additions and 0 deletions.
  1. +3 −0 dot2png
  2. +17 −0 makeline
View
3 dot2png
@@ -0,0 +1,3 @@
+#!/bin/sh
+echo dot -T png -o $(basename $1 .dot).png $1
+dot -T png -o $(basename $1 .dot).png $1
View
17 makeline
@@ -0,0 +1,17 @@
+#!/bin/sh
+# makeline - draw a line on the terminal
+# credit due to @climagic on twitter
+#
+# Examples: (|'s indicate width of your terminal)
+#
+# |$ makeline |
+# |########################################|
+#
+# |$ makeline - |
+# |----------------------------------------|
+#
+# |$ makeline = 20 |
+# |==================== |
+
+makeline(){ printf "%${2:-$COLUMNS}s\n" ""|tr " " ${1:-#}; }
+ # 'makeline =' to make terminal width line. Or give 2nd arg count.

0 comments on commit 1f25b5b

Please sign in to comment.
Something went wrong with that request. Please try again.