User's own extension, view configuration and edit configuration
file. They override the contents of the system wide files if
present.
......
Extension File Edit
This will invoke your editor on the file ~/.mc/ext. The format of this
file is as follows (the format has changed with version 3.0):
All lines starting with # or empty lines are thrown away.
Lines starting in the first column should have following format:
keyword/descNL, i.e. everything after keyword/ until new line is desc
keyword can be:
shell
(desc is then any extension (no wildcards), i.e. matches all the
files *desc . Example: .tar matches *.tar)
regex
(desc is a regular expression)
type
(file matches this if `file %f` matches regular expression desc
(the filename: part from `file %f` is removed))
default
(matches any file no matter what desc is)
Other lines should start with a space or tab and should be of the for-
mat:
keyword=commandNL (with no spaces around =), where keyword should be:
Open (if the user presses Enter or doubleclicks it), View (F3), Edit
(F4), Drop (user drops some files on it) or any other user defined name
(those will be listed in the extension dependent pop-up menu). Icon
name is reserved for future use by mc.
command is any one-line shell command, with the simple macro substitu-
tion.
Target are evaluated from top to bottom (order is thus important). If
some actions are missing, search continues as if this target didn't
match (i.e. if a file matches the first and second entry and View
action is missing in the first one, then on pressing F3 the View action
from the second entry will be used. default should catch all the
actions.
[quote]man mc...... ~/.mc/
RedHat이라면, /usr/lib/mc/mc.ext 파일을 참고하세요.
_____________________________
언제나 맑고픈 샘이가...
http://purewell.biz
댓글 달기