Skip to content

TcheL/OpenAny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 

Repository files navigation

OpenAny

A bash script used to open a type-arbitrary file on Linux.

License

The MIT License

Usage

You can get help information as follows:

[user@A ~]$ opan -h

Usage:  opan [-h] | [ file [options] ]
  [-h     ]: print this help information.
  [file   ]: name of the file to open.
  [options]: options to pass to the invoked file-open tool.

If you want to open any file, just run $ opan filename, opan will automatically detect file type according to file extension, and select a binding tool to open the file filename.

So far, opan supports:

file extension invoked tool
.txt, .log, .conf, .dat, .inc, .cpt vim
.c, .cpp, .cc, .h, .hpp vim
.f, .for, .f90, .F, .FOR, .F90, .nml vim
.cu vim
.m vim
.py, .pyf vim
.sh, .bat vim
.tex, .sty, .bib vim
.pbs, .lsf vim
.json vim
.yml vim
.html vim
.pdf, .eps, .ps evince
.png, .jpg, .gif, .tif eog
.tar, .tgz, .gz, .bz2 tar
.md typora
.nc ncdump

Author

Tche LIU, seistche@gmail.com, USTC

OpenAny

About

A bash script used to open a type-arbitrary file on Linux.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages