Gitify the working tree.
[profile.git] / opt / bin / usize
diff --git a/opt/bin/usize b/opt/bin/usize
new file mode 100755 (executable)
index 0000000..7221e60
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/bash -i
+#
+# usize: Set urxvt (or terminal which understands the same escape sequences) 
+#        size.
+# Usage: usize <width> [<height>]
+#
+
+width=${COLUMNS:-80}
+height=${LINES:-24}
+
+case $# in
+  0)
+    echo "Usage: usize $width $height"
+    exit 1
+  ;;
+  1) width=$1;;
+  2) width=$1; height=$2;;
+esac
+
+echo -e "\033[8;$height;$width;t"
+exit 0