Foo, sometimes, when you are on terminal, its soo lazy to open google chrome from the dock, I just wrote a foolish script that does it:
1 2 3 4 5 6 7 8 9 10 |
#!/bin/bash
args=("$@")
all_terms=${args[0]}
i=1
while [ $i -lt ${#args[@]} ]
do
all_terms=$all_terms+${args[i]}
i=$[$i+1]
done
google-chrome http://www.google.co.uk/#q=$all_terms
|
Well, just copy the above script in a file, chmod +x it, all it as an alias using may be “google” as alias name to your .bashrc and source .bashrc and have fun
