Script to launch private window with query to Google all at once.
Many times I find myself doing the same thing when I have a dumb question ...
1. Open firefox on private window
2. Type the query
3. Hit enter
Well, not anymore.
I created a bash script and now I just type
"q whatever is your query"
On terminal or on Run (launched by Alt+F2) and hit enter.
Code:
#!/bin/bash
# Open a browser in private window
# with the arguments in a query to Google
# arguments
search="${@:1}";
# create url with query
url="http://www.google.com/search?q=$search";
# open browser
firefox --private-window "$url" &
1. Open firefox on private window
2. Type the query
3. Hit enter
Well, not anymore.
I created a bash script and now I just type
"q whatever is your query"
On terminal or on Run (launched by Alt+F2) and hit enter.
Code:
#!/bin/bash
# Open a browser in private window
# with the arguments in a query to Google
# arguments
search="${@:1}";
# create url with query
url="http://www.google.com/search?q=$search";
# open browser
firefox --private-window "$url" &
0 Comments:
Post a Comment
<< Home