edit(7) Mac OS X Darwin customization edit(7) NAME edit - attempts to open editable files in an appropriate application. SYNOPSIS edit [ -RfSsqrh ] [ file ] DESCRIPTION edit - attempts to open editable files in an appropriate application. Default values for an ASCII text editor (eg: SubEthaEdit), an image editor (eg: Adobe Photoshop), a postscript display (eg: Preview in 10.3.x works), a PDF display (eg: Preview), and a WYSIWYG HTML editor (eg: Mozilla composer, a free alternative to DreamCrusher), are set using the function my_prefs_edit which is called if the file .zsh/my_edit_rc does not exist in the user's home directory. This file can also be edited by hand and is read (and is required) by the functions hydra and nonasciiedit as well. The functions hydra and nonasciiedit, as well as my_prefs_edit, are stand-alone functions and are imported by this function (edit) that serves as a wrapper and augments a few features. OPTIONS -R deletes the preferences file The user is then prompted to set new preferences next time edit is invoked. -f foo Forces the file foo to be opened with the default ascii text editor application -S Turns on a most delightful speakable dialogue. -s Use sudo edit to open a file (presumably owned by the system). -q bar Turn off spoken and most written dialogue. -r foo Attempts to refocus to terminal window after opening file in gui editor. -h Obtain program help info. FILES ~/.my_edit_rc A preferences file most easily created by invoking edit and fol- lowing the prompts. The user is asked to choose a default ascii editor (like SubEthaEdit or BBedit), an image editor (like Adobe Photoshop), a PDF viewer (like Preview) and so on. You can also invoke the function my_prefs_edit to create this file, or you can create it manually. See my_prefs_edit(7) and hydra(7) and nonasciiedit(7) for further details. hydra my_prefs_edit nonasciiedit edit are all zsh functions that must be in the $fpath array for the edit command to work properly. AUTHORS The edit command is authored by by William Scott and is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. SEE ALSO hydra(7), nonasciiedit(7), my_prefs_edit(7) zsh-templates(7) open(7) Mac OS X March 19, 2005 edit(7)