update to composure 1e26d79b

minor edits
https://github.com/erichs/composure/commit/1e26d79b
pull/120/head
Erich Smith 2012-05-05 22:49:27 -04:00
parent 3e7c0fbda0
commit 2e51e6a701
1 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# composure - by erichs
# light-hearted shell functions for intuitive shell programming
# light-hearted functions for intuitive shell programming
# install: source this script in your ~/.profile or ~/.${SHELL}rc script
@ -27,7 +27,7 @@ cite ()
# anything following a keyword will get parsed as a positional
# parameter, but stay resident in the ENV. As opposed to shell
# comments, '#', which do not get parsed, thus are not available
# comments, '#', which do not get parsed and are not available
# at runtime.
# a BIG caveat--your metadata must be roughly parsable: do not use
@ -105,7 +105,8 @@ listfunctions ()
typeset x ans
typeset this=$(for x in $(ps -p $$); do ans=$x; done; printf "%s\n" $ans | sed 's/^-*//')
case "$this" in
typeset shell=$(basename $this) # e.g. /bin/bash => bash
case "$shell" in
bash)
typeset -F | awk '{print $3}'
;;