Browse Source

add func netwait

pull/1/head
10sr 12 years ago
parent
commit
b3808bf6c9
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      bashrc

+ 8
- 0
bashrc View File

@@ -203,6 +203,14 @@ then
|| complete -o default -o nospace -F _git g || complete -o default -o nospace -F _git g
fi fi


netwait(){
while ! ping example.com -c 1
do
true
done
echo network works.
}

cd(){ cd(){
if test $# -eq 0 if test $# -eq 0
then then


Loading…
Cancel
Save