alligatorTim
Registered
kind of silly i know, but i edit html in my term windows and i hate using a mouse to test in a browser.
short version:
--------------------------
1. make an html page. (page.html)
2. write an executable shell script somewhere in your $PATH with the line "Open /path/to/page.html;".
--------------------------
long version:
--------------------------
fisrt create a nice little html page. mine looks like this..
but you can do anything you want within the boundrys of client side web content. once you create your html page name it "mypage.html" and put it in your home directory. (/Users/yourname)
now open a terminal and type "cd /usr/bin" then, using your favorite unix text editor create a file with the following line:
Open /Users/yourname/mypage.html;
you will have to run the editor as the super user (using sudo) because root owns /usr/bin. so for example "sudo pico zong". name the file something catchy and easy to type because the name of this file is gonna be the command you type to launch your browser. i used "zong".
finally. once you've saved your new file and exited your editor. you need to type "sudo chmod a+x zong".
now when you type "zong" at the command prompt it will launch your page in your default browser.
--------------------------
short version:
--------------------------
1. make an html page. (page.html)
2. write an executable shell script somewhere in your $PATH with the line "Open /path/to/page.html;".
--------------------------
long version:
--------------------------
fisrt create a nice little html page. mine looks like this..
PHP:
<html>
<title>alligatorTim</title>
<body bgcolor="#ffffff">
hello alligator.
</body>
</html>
but you can do anything you want within the boundrys of client side web content. once you create your html page name it "mypage.html" and put it in your home directory. (/Users/yourname)
now open a terminal and type "cd /usr/bin" then, using your favorite unix text editor create a file with the following line:
Open /Users/yourname/mypage.html;
you will have to run the editor as the super user (using sudo) because root owns /usr/bin. so for example "sudo pico zong". name the file something catchy and easy to type because the name of this file is gonna be the command you type to launch your browser. i used "zong".
finally. once you've saved your new file and exited your editor. you need to type "sudo chmod a+x zong".
now when you type "zong" at the command prompt it will launch your page in your default browser.
--------------------------