zshrc: Remove limg
authorFrank Terbeck <ft@bewatermyfriend.org>
Tue, 29 Nov 2011 13:06:43 +0000 (14:06 +0100)
committerMichael Prokop <mika@grml.org>
Tue, 6 Dec 2011 13:50:46 +0000 (14:50 +0100)
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
doc/grmlzshrc.t2t
etc/zsh/zshrc

index c0781d3..a964a2d 100644 (file)
@@ -656,10 +656,6 @@ Returns true, if run within an utf environment, else false.
 : **iwclient()**
 Searches a wireless interface and runs dhclient(8) on it.
 
-: **limg()**
-Lists images (i. e. files ending with ".jpg", ".gif" or ".png") in current
-directory.
-
 : **manzsh()**
 Shows the zshall manpage and jumps to the first match of the regular
 expression optionally given as argument (Needs qma(1)).
index 1813b3d..0d8b290 100644 (file)
@@ -2821,18 +2821,6 @@ sshot() {
     cd ~/shots ; sleep 5; import -window root shot_`date --iso-8601=m`.jpg
 }
 
-# list images only
-limg() {
-    local -a images
-    images=( *.{jpg,gif,png}(.N) )
-
-    if [[ $#images -eq 0 ]] ; then
-        print "No image files found"
-    else
-        ls "$images[@]"
-    fi
-}
-
 #f5# List files which have been accessed within the last {\it n} days, {\it n} defaults to 1
 accessed() {
     emulate -L zsh