Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
46c0d959
Commit
46c0d959
authored
Jun 15, 2016
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add README for OSX plugin and refactor plugin file
parent
137a554e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
20 deletions
+28
-20
README.md
plugins/osx/README.md
+27
-0
_man-preview
plugins/osx/_man-preview
+0
-5
osx.plugin.zsh
plugins/osx/osx.plugin.zsh
+1
-15
No files found.
plugins/osx/README.md
0 → 100644
View file @
46c0d959
# OSX plugin
## Description
This plugin provides a few utilities to make it more enjoyable on OSX.
To start using it, add the
`osx`
plugin to your plugins array in
`~/.zshrc`
:
```
zsh
plugins
=(
... osx
)
```
Original author:
[
Sorin Ionescu
](
https://github.com/sorin-ionescu
)
## Commands
| Command | Description |
|:--------------|:-----------------------------------------------|
|
`tab`
| Open the current directory in a new tab |
|
`ofd`
| Open the current directory in a Finder window |
|
`pfd`
| Return the path of the frontmost Finder window |
|
`pfs`
| Return the current Finder selection |
|
`cdf`
|
`cd`
to the current Finder directory |
|
`pushdf`
|
`pushd`
to the current Finder directory |
|
`quick-look`
| Quick-Look a specified file |
|
`man-preview`
| Open a specified man page in Preview app |
plugins/osx/_man-preview
deleted
100644 → 0
View file @
137a554e
#compdef man-preview
#autoload
_man
plugins/osx/osx.plugin.zsh
View file @
46c0d959
# ------------------------------------------------------------------------------
# FILE: osx.plugin.zsh
# DESCRIPTION: oh-my-zsh plugin file.
# AUTHOR: Sorin Ionescu (sorin.ionescu@gmail.com)
# VERSION: 1.1.0
# ------------------------------------------------------------------------------
# Open the current directory in a Finder window
alias
ofd
=
'open_command $PWD'
...
...
@@ -154,14 +147,6 @@ function pfd() {
EOF
}
function
ofd
()
{
osascript 2>/dev/null
<<
EOF
tell application "Finder"
open POSIX file "
$PWD
"
end tell
EOF
}
function
pfs
()
{
osascript 2>/dev/null
<<
EOF
set output to ""
...
...
@@ -190,6 +175,7 @@ function quick-look() {
function
man-preview
()
{
man
-t
"
$@
"
| open
-f
-a
Preview
}
compdef man-preview
=
man
function
vncviewer
()
{
open vnc://
$@
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment