The original repository appears to be no longer being maintained, so this fork aims to keep the useful functions updated.
- see the OG ๐ oh-my-fish/plugin-osx
Originally inspired by the oh-my-zshโs plugin of same name by sorin-ionescu, this plug-in brings a number of handy functions:
Command | Description |
---|---|
cdf |
cd to the current Finder Directory |
ofd |
Open the current directory in a Finder window |
flushdns |
Flushed the DNS cache for Catalina and later |
music |
Control Music: play, pause, stop, resume, etc. - Updated/Added by @jnnkB |
manp |
Open a specific man page in Preview - Updated/Added by @toph-allen |
pfd |
Return the path of the front-most Finder window |
pfs |
Return the current Finder selection |
pushdf |
pushd to the current Finder directory |
ql |
Quick Look a specified file or directory |
showhidden |
Shows hidden files and folders in Finder |
trash |
Move a specified file/directory to the Trash (a safer rm ) |
unset |
Emulates the unset command to unset an environment variable |
updatedb |
Updates 'locate' database |
freespace |
Erases purgeable disk space with 0s on the selected disk |
rmds |
Remove .DS_Store files either recursively in a directory tree or only in the current directory |
Note: the
tab
function was dropped in favor a more robust plugin-tab.
$ fisher install edheltzel/fisher-plugin-macos
$ music -h # show usage and available options
$ manp fish # open Fish's manpage in Preview
$ ql *jpg # quick look all such pictures
$ rmds -c # remove .DS_Store from the current directory only