On Mon, Dec 6, 2010 at 1:49 PM, Mihir Mehta <[email protected]>wrote:
> > > On Mon, Dec 6, 2010 at 1:29 PM, Sharad Birmiwal > <[email protected]>wrote: > >> On Sun, Dec 5, 2010 at 9:37 AM, Narendra Sisodiya >> <[email protected]> wrote: >> > This is one the smallest trick >> > >> > ping() { >> > if [ -z $1 ]; >> > then >> > /bin/ping google.com >> > else >> > /bin/ping $@ >> > fi >> > } >> >> But isn't it nice to see how to use ping if you don't pass an >> argument? I would suggest adding a detailed explanation rather than >> pinging google by default. >> > > > I think that's correct. > In most cases, the guy who doesn't know how to use ping will just type ping > and hope for some kind of explanation to appear. I guess everyone does this > when they find out a new command line function but don't know how to use it. > > Even if it is convenient, it shouldn't go to the .bashrc of a distro- > particularly when the distro is targeted at school-age children. > Umm,, I just wanted to make it more usable for giving shortcut for pining google.com , Any way he can type ping -h too. I will publish all the modification and things on wiki/blog for voting and then we can have voting for which feature/tips we can add. -- ┌─────────────────────────┐ │ Narendra Sisodiya │ http://narendrasisodiya.com └─────────────────────────┘ -- l...@iitd - http://tinyurl.com/ycueutm
