Обновление ohmyzsh
This commit is contained in:
@@ -1,15 +1,23 @@
|
||||
## forklift
|
||||
# forklift
|
||||
|
||||
Plugin for ForkLift, an FTP application for OS X.
|
||||
|
||||
### Requirements
|
||||
To use it, add `forklift` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... forklift)
|
||||
```
|
||||
|
||||
## Requirements
|
||||
|
||||
* [ForkLift](https://binarynights.com/)
|
||||
|
||||
### Usage
|
||||
## Usage
|
||||
|
||||
<code>fl [*file_or_folder*]</code>
|
||||
`fl [<file_or_folder>]`
|
||||
|
||||
* If `fl` is called without arguments then the current folder is opened in ForkLift. This is equivalent to `fl .`.
|
||||
|
||||
* If `fl` is called with a directory as the argument, then that directory is opened in ForkLift. If called with a non-directory file as the argument, then the file's parent directory is opened.
|
||||
* If `fl` is called with a directory as the argument, then that directory is opened in ForkLift
|
||||
|
||||
* If `fl` is called with a non-directory file as the argument, then the file's parent directory is opened.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# Open folder in ForkLift.app or ForkLift2.app from console
|
||||
# Author: Adam Strzelecki nanoant.com, modified by Bodo Tasche bitboxer.de
|
||||
# Updated to support ForkLift 2 and ForkLift 3 by Johan Kaving
|
||||
# Updated to support ForkLift from Setapp by Paul Rudkin
|
||||
#
|
||||
# Usage:
|
||||
# fl [<folder>]
|
||||
@@ -24,6 +25,13 @@ function fl {
|
||||
fi
|
||||
osascript 2>&1 1>/dev/null <<END
|
||||
|
||||
try
|
||||
tell application "Finder"
|
||||
set forkLiftSetapp to name of application file id "com.binarynights.forklift-setapp"
|
||||
end tell
|
||||
on error err_msg number err_num
|
||||
set forkLiftSetapp to null
|
||||
end try
|
||||
try
|
||||
tell application "Finder"
|
||||
set forkLift3 to name of application file id "com.binarynights.ForkLift-3"
|
||||
@@ -46,7 +54,12 @@ function fl {
|
||||
set forkLift to null
|
||||
end try
|
||||
|
||||
if forkLift3 is not null and application forkLift3 is running then
|
||||
if forkLiftSetapp is not null and application forkLiftSetapp is running then
|
||||
tell application forkLiftSetapp
|
||||
activate
|
||||
set forkLiftVersion to version
|
||||
end tell
|
||||
else if forkLift3 is not null and application forkLift3 is running then
|
||||
tell application forkLift3
|
||||
activate
|
||||
set forkLiftVersion to version
|
||||
@@ -62,7 +75,9 @@ function fl {
|
||||
set forkLiftVersion to version
|
||||
end tell
|
||||
else
|
||||
if forkLift3 is not null then
|
||||
if forkLiftSetapp is not null then
|
||||
set appName to forkLiftSetapp
|
||||
else if forkLift3 is not null then
|
||||
set appName to forkLift3
|
||||
else if forkLift2 is not null then
|
||||
set appName to forkLift2
|
||||
|
||||
Reference in New Issue
Block a user