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/forklift.plugin.zsh | 107 ++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 .oh-my-zsh/plugins/forklift/forklift.plugin.zsh (limited to '.oh-my-zsh/plugins/forklift/forklift.plugin.zsh') 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 <