Over a million developers have joined DZone.

My Own Bashrc Quickhelp

·
// description at http://awasihba.wordpress.com/2008/12/18/my-own-bashrc-help/



function myhelp {
#This prints help over here
FILE="$HOME/myfunctions"
grep -A 1 ^function $FILE | sed -e '  /^--/d ; /^function/ { s/^function//g; s/{//g;   N;   s/n#(.*)/ - 1/; } '
}

function py {
#Ping yahoo.com
  ping www.yahoo.com
}

function debugAE {
#Start debugging apple events on console
        if [ "$1" == "on" ]
        then
                export AEDebugSends=1
                export AEDebugReceives=1
        else
                export AEDebugSends=0
                export AEDebugReceives=0
        fi
}

Topics:

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}