eds(7)                   Mac OS X Darwin customization                  eds(7)



NAME
       eds -  edit the web page on your server that is displayed in Safari

SYNOPSIS
       eds

DESCRIPTION
       eds,  when issued from the command prompt in Terminal, iTerm, or xterm,
       will cd into the directory corresponding to the web page  displayed  in
       Safari  and will then open the corresponding html file on the server in
       your favorite editor.  The purpose of this is so that if  you  own  the
       web     page     displayed     in     Safari     having     the     url
       http://www.myplace.org/foo/index.html and the file  index.html  resides
       in  (for  example)  ~/Sites/foo,  typing the command eds results in the
       commands cd ~/Sites/foo; $HTML_EDITOR  index.html  being  issued.   For
       this to work, you must have exported the environment variable HTML_EDI-
       TOR either explicitly in your .zshrc file, or else by  having  initial-
       ized the edit function provided in this collection. (Otherwise the html
       editor defaults to vim, which is a reasonable  html  editor  when  used
       with  syntax  highlighting.)   In  addition, you must have exported the
       environment variables PUBLIC_HTML and MY_DOMAIN from your  .zshrc  file
       or  equivalent.  For the above example, you would want the lines export
       HTML_EDITOR='see'  and  export   PUBLIC_HTML="/Users/$USER/Sites"   and
       export MY_DOMAIN="myplace.org" in your .zshrc file in order to edit the
       file index.html on the server using  the  command-line  editor  utility
       "see"  installed with SubEthaEdit. Other command-line options like vim,
       bbedit, "open -e", and so  on  may  also  be  used.   (If  you  put  in
       www.myplace.org, that will work too, but if you use simply myplace.org,
       BOTH  www.myplace.org  and  myplace.org  will  be  recognized  in  your
       browser.  If these are not matched by what is displayed in the browser,
       a message is returned that states that the name does not appear  to  be
       part  of  the  file  system.   The  function is a zsh shell script that
       invokes an osascript that invokes  a  javascript  to  communicate  with
       Safari.

ENVIRONMENT
       The  environment  variables  PUBLIC_HTML  and PUBLIC_HTML and MY_DOMAIN
       must be exported as described above.

AUTHOR
        William Scott

SEE ALSO
       spath(7), cds(7)





Mac OS X                         April 7, 2005                          eds(7)