Editing revision 6 of ExportEDITORAndVISUAL
HomePage
|
RecentChanges
|
EditorIndex
|
TextEditorFamilies
|
Preferences
Editing old revision 6. Saving this page will replace the latest revision with this text.
For example: In KornShell: * export EDITOR=vi * export VISUAL=vi In the Bourne Shell: EDITOR=vi VISUAL=vi export EDITOR VISUAL In the C Shell * setenv EDITOR vi * setenv VISUAL vi If you want your favorite editor to be used by a mail program (or any other program), it is typically possible to either: * set an environment variable like the ones above. * or, set a property in a configuration file. Usually it is a file whose name ends in "rc" such as .bashrc Under *nix, environment variables set in the login script are what controls what the system considers the default editor. The C shell login script is .login, a "hidden" file in the user's home directory. The Bourne and Korn shell's login script is called .profile. The login script is read when the user logs in, but not after unless specifically done from the shell. This can be done from the C Shell by "source ~/.login", and from the Bourne and Korn shells by ". ~/.profile". (~ will be expanded by the shell to the value for the full pathname for the user's home directory.) "rc" files have a different purpose. While a sub-shell normally inherits the environment of its parent, some things are typically not propagated to sub-shells. rc files handle that case. They are read by the shell *every* time it is invoked, and can be used to set values not passed down form the parent to sub-shells. The C Shell uses a file called .cshrc. The Korn Shell uses .kshrc. Bash uses .bashrc. Files on *nix beginning with a period are "hidden" -- they are not shown in a standard ls display. You must use "ls -a" to show them. Look for these options. [http://www.kumpulanpuisi.org Kumpulan Puisi]
Summary:
This change is a minor edit.
Please calculate
*
=
(Visit
Preferences
to set your user name.)
View other revisions
HomePage
|
RecentChanges
|
EditorIndex
|
TextEditorFamilies
|
Preferences