retry alias for bash

This is what you do when you have a shitting Internet connection:

$ vim ~/.bash_aliases

  function retry(){
    false;
    while [ $? -gt 0 ];
      do $@;
    done;
  }

To rape your server, just retry ssh -o ConnectTimeout=1 blah@foobar

Shit just got working for now.

Comments