From: Joerg Woelke Date: Mon, 17 Aug 2009 19:05:06 +0000 (+0200) Subject: grmlzshrc.t2t: Documentation for more functions X-Git-Tag: v0.3.77~33 X-Git-Url: https://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=b6494fe82e2b025ceba1797f5b1119bac2c4b552 grmlzshrc.t2t: Documentation for more functions 2html, doc, hex, readme, startx, upgrade, xinit. --- diff --git a/doc/grmlzshrc.t2t b/doc/grmlzshrc.t2t index 4414f62..34e5e5c 100644 --- a/doc/grmlzshrc.t2t +++ b/doc/grmlzshrc.t2t @@ -239,10 +239,36 @@ Edit the current command buffer in your favourite editor. //grmlzshrc// comes with a wide array of defined shell functions to ease the user's life. +: **2html()** +Converts plaintext files to HTML using vim. The output is written to +.html. + +: **doc()** +Takes packagename as argument. Sets current working directory to +/usr/share/doc/ and prints out a directory listing. + +: **hex()** +Prints the hexadecimal representation of the number supplied as argument +(base ten only). + +: **readme()** +Opens all README-like files in current working directory with the program +defined in the $PAGER environment variable. + +: **startx()** +Initializes an X session using startx(1) if /etc/X11/xorg.conf exists, else +issues a Warning to use the grml-x(1) script. Can be overridden by using +/usr/bin/startx directly. + : **urlencode()** Takes a string as its first argument and prints it RFC 2396 URL encoded to standard out. +: **xinit()** +Initializes an X session using xinit(1) if /etc/X11/xorg.conf exists, else +issues a Warning to use the grml-x(1) script. Can be overridden by using +/usr/bin/xinit directly. + == ALIASES == //grmlzshrc// comes with a wide array of predefined aliases to ease the user's