From 55457187d18221e76bd12f0fb2cfab65c49b92fb Mon Sep 17 00:00:00 2001
From: Marvin Borner
Date: Tue, 5 Mar 2019 01:09:01 +0100
Subject: Initial commit
---
.oh-my-zsh/plugins/forklift/README.md | 15 ++++
.oh-my-zsh/plugins/forklift/forklift.plugin.zsh | 107 ++++++++++++++++++++++++
2 files changed, 122 insertions(+)
create mode 100644 .oh-my-zsh/plugins/forklift/README.md
create mode 100644 .oh-my-zsh/plugins/forklift/forklift.plugin.zsh
(limited to '.oh-my-zsh/plugins/forklift')
diff --git a/.oh-my-zsh/plugins/forklift/README.md b/.oh-my-zsh/plugins/forklift/README.md
new file mode 100644
index 0000000..6c4ce1e
--- /dev/null
+++ b/.oh-my-zsh/plugins/forklift/README.md
@@ -0,0 +1,15 @@
+## forklift
+
+Plugin for ForkLift, an FTP application for OS X.
+
+### Requirements
+
+* [ForkLift](https://binarynights.com/)
+
+### Usage
+
+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.
diff --git a/.oh-my-zsh/plugins/forklift/forklift.plugin.zsh b/.oh-my-zsh/plugins/forklift/forklift.plugin.zsh
new file mode 100644
index 0000000..274c4a8
--- /dev/null
+++ b/.oh-my-zsh/plugins/forklift/forklift.plugin.zsh
@@ -0,0 +1,107 @@
+# 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
+#
+# Usage:
+# fl []
+#
+# Opens specified directory or current working directory in ForkLift.app
+#
+# Notes:
+# It assumes Shift+Cmd+G launches go to folder panel and Cmd+N opens new
+# app window.
+#
+# https://gist.github.com/3313481
+function fl {
+ if [ ! -z "$1" ]; then
+ DIR=$1
+ if [ ! -d "$DIR" ]; then
+ DIR=$(dirname $DIR)
+ fi
+ if [ "$DIR" != "." ]; then
+ PWD=`cd "$DIR";pwd`
+ fi
+ fi
+ osascript 2>&1 1>/dev/null <