Diff
1diff --git a/plugins/osx/README.md b/plugins/osx/README.md
2new file mode 100644
3index 0000000000000000000000000000000000000000..a06184a45b9090e58411b7fba1ac64956b98fee5
4--- /dev/null
5+++ b/plugins/osx/README.md
6@@ -0,0 +1,27 @@
7+# OSX plugin
8+
9+## Description
10+
11+This plugin provides a few utilities to make it more enjoyable on OSX.
12+
13+To start using it, add the `osx` plugin to your plugins array in `~/.zshrc`:
14+
15+```zsh
16+plugins=(... osx)
17+```
18+
19+Original author: [Sorin Ionescu](https://github.com/sorin-ionescu)
20+
21+
22+## Commands
23+
24+| Command | Description |
25+|:--------------|:-----------------------------------------------|
26+| `tab` | Open the current directory in a new tab |
27+| `ofd` | Open the current directory in a Finder window |
28+| `pfd` | Return the path of the frontmost Finder window |
29+| `pfs` | Return the current Finder selection |
30+| `cdf` | `cd` to the current Finder directory |
31+| `pushdf` | `pushd` to the current Finder directory |
32+| `quick-look` | Quick-Look a specified file |
33+| `man-preview` | Open a specified man page in Preview app |
34diff --git a/plugins/osx/_man-preview b/plugins/osx/_man-preview
35deleted file mode 100644
36index 6cc344ad4609fe125fd510a60219c7ed82b10faa..0000000000000000000000000000000000000000
37--- a/plugins/osx/_man-preview
38+++ /dev/null
39@@ -1,5 +0,0 @@
40-#compdef man-preview
41-#autoload
42-
43-_man
44-
45diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
46index a80b199266a1d6b3cf21c2a38afe20458082efe9..c66325cde46ce09bf33bd9ba36a96994cc5444ab 100644
47--- a/plugins/osx/osx.plugin.zsh
48+++ b/plugins/osx/osx.plugin.zsh
49@@ -1,10 +1,3 @@
50-# ------------------------------------------------------------------------------
51-# FILE: osx.plugin.zsh
52-# DESCRIPTION: oh-my-zsh plugin file.
53-# AUTHOR: Sorin Ionescu (sorin.ionescu@gmail.com)
54-# VERSION: 1.1.0
55-# ------------------------------------------------------------------------------
56-
57 # Open the current directory in a Finder window
58 alias ofd='open_command $PWD'
59
60@@ -154,14 +147,6 @@ function pfd() {
61 EOF
62 }
63
64-function ofd() {
65- osascript 2>/dev/null <<EOF
66- tell application "Finder"
67- open POSIX file "$PWD"
68- end tell
69-EOF
70-}
71-
72 function pfs() {
73 osascript 2>/dev/null <<EOF
74 set output to ""
75@@ -190,6 +175,7 @@ function quick-look() {
76 function man-preview() {
77 man -t "$@" | open -f -a Preview
78 }
79+compdef man-preview=man
80
81 function vncviewer() {
82 open vnc://$@