mirror of https://github.com/MidnightCommander/mc
Add support for MacOS Mach-O and .dylib files
Closes MidnightCommander/mc#164. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
482e183190
commit
6a9ad25e44
|
@ -35,6 +35,9 @@ do_view_action() {
|
|||
elf)
|
||||
file "${MC_EXT_FILENAME}" && nm -C "${MC_EXT_FILENAME}"
|
||||
;;
|
||||
dylib)
|
||||
file "${MC_EXT_FILENAME}" && nm -n "${MC_EXT_FILENAME}"
|
||||
;;
|
||||
dbf)
|
||||
dbview -b "${MC_EXT_FILENAME}"
|
||||
;;
|
||||
|
|
|
@ -455,6 +455,11 @@ Include=editor
|
|||
Regex=\.(so|so\.[0-9\.]*)$
|
||||
View=%view{ascii} @EXTHELPERSDIR@/misc.sh view so
|
||||
|
||||
# .dylib libraries
|
||||
[dylib]
|
||||
Regex=\.(dylib|dylib\.[0-9\.]*)$
|
||||
View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dylib
|
||||
|
||||
|
||||
### Documentation ###
|
||||
|
||||
|
@ -893,6 +898,10 @@ Type=^ELF
|
|||
#Open=%var{PAGER:more} %f
|
||||
View=%view{ascii} @EXTHELPERSDIR@/misc.sh view elf
|
||||
|
||||
[Mach-O]
|
||||
Type=^Mach-O
|
||||
#Open=%var{PAGER:more} %f
|
||||
View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dylib
|
||||
|
||||
### Documentation ###
|
||||
|
||||
|
|
Loading…
Reference in New Issue