From: Joerg Woelke Date: Fri, 21 Aug 2009 17:46:14 +0000 (+0200) Subject: grmlzshrc.t2t: Some more descriptions of functions. X-Git-Tag: v0.3.77~27 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=101b9a14ace836d337d35170a690bc5fd17b1563;hp=264b6103759be264b9c95ba24e989a4072b813d1;p=grml-etc-core.git grmlzshrc.t2t: Some more descriptions of functions. is4(), is41(), is42(), is425(), is43(), is433(), isdarwin(), isgrml(), isgrmlcd(), isgrmlsmall(), isutfenv(), limg(), sshot(). --- diff --git a/doc/grmlzshrc.t2t b/doc/grmlzshrc.t2t index 961a670..953bde7 100644 --- a/doc/grmlzshrc.t2t +++ b/doc/grmlzshrc.t2t @@ -258,6 +258,43 @@ Searches the zsh command history for a regular expression. Prints the hexadecimal representation of the number supplied as argument (base ten only). +: **is4()** +Returns true, if zsh version is equal or greater than 4, else false. + +: **is41()** +Returns true, if zsh version is equal or greater than 4.1, else false. + +: **is42()** +Returns true, if zsh version is equal or greater than 4.2, else false. + +: **is425()** +Returns true, if zsh version is equal or greater than 4.2.5, else false. + +: **is43()** +Returns true, if zsh version is equal or greater than 4.3, else false. + +: **is433()** +Returns true, if zsh version is equal or greater than 4.3.3, else false. + +: **isdarwin()** +Returns true, if running on darwin, else false. + +: **isgrml()** +Returns true, if running on a grml system, else false. + +: **isgrmlcd()** +Returns true, if running on a grml system from a live cd, else false. + +: **isgrmlsmall()** +Returns true, if run on grml-small, else false. + +: **isutfenv()** +Returns true, if run within an utf environment, else false. + +: **limg()** +Lists images (i. e. files ending with ".jpg", ".gif" or ".png") in current +directory. + : **mcd()** Creates directory including parent directories, if necessary. Then changes current working directory to it. @@ -269,6 +306,13 @@ defined in the $PAGER environment variable. : **shtar()** Lists the content of a gzipped tar archive in default pager. +: **sshot()** +Creates directory named shots in user's home directory, if it does not yet +exist and changes current working directory to it. Then sleeps 5 seconds, +so you have plenty of time to switch desktops/windows. Then makes a screenshot +of the current desktop. The result is stored in ~/shots to a timestamped +jpg file. + : **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