Inspired by the oh-my-zsh’s plugin of same name by sorin-ionescu, this plug-in brings a number of handy functions:
cdf-cdto the current Finder directoryflushdns- Flushes the DNS cache for Yosemite and El Capitanitunes- Control iTunes: Play, pause, stop, resume, etc.manp- Open a specified man page in Previewpfd- Return the path of the frontmost Finder windowpfs- Return the current Finder selectionpushdf-pushdto the current Finder directoryql- Quick Look a specified file or directoryshowhidden- Shows hidden files and folders in Findertrash- Move a specified file to the Trashunset- Emulates theunsetcommand to unset an environment variableupdatedb- Updates locate command database
Note: the
tabfunction was dropped in favor a more robust plugin-tab.
$ omf install osx$ itunes -h # show usage and available options
$ manp fish # open Fish's manpage in Preview
$ ql *jpg # quick look all such pictures