Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
Lists the contents of a (compressed) archive with the appropriate programs.
The choice is made along the filename extension.
-: **shtar()**
-Lists the content of a gzipped tar archive in default pager.
-
: **simple-extract()**
Tries to uncompress/unpack given files with the appropriate programs. If an URI
starting with https, http or ftp is provided simple-extract tries to download
memusage() {
ps aux | awk '{if (NR > 1) print $5; if (NR > 2) print "+"} END { print "p" }' | dc
}
-#f5# Show contents of gzipped tar file
-shtar() {
- emulate -L zsh
- gunzip -c $1 | tar -tf - -- | $PAGER
-}
# Function Usage: doc packagename
#f5# \kbd{cd} to /usr/share/doc/\textit{package}