From 1eb69e9a795cc19450178c07d8d382622bc7ad70 Mon Sep 17 00:00:00 2001 From: Pedro Pereira Date: Fri, 16 Oct 2026 15:19:13 -0300 Subject: first commit --- .../oh-my-zsh/plugins/forklift/forklift.plugin.zsh | 128 +++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 .config/zsh/oh-my-zsh/plugins/forklift/forklift.plugin.zsh (limited to '.config/zsh/oh-my-zsh/plugins/forklift/forklift.plugin.zsh') diff --git a/.config/zsh/oh-my-zsh/plugins/forklift/forklift.plugin.zsh b/.config/zsh/oh-my-zsh/plugins/forklift/forklift.plugin.zsh new file mode 100644 index 0000000..4bc7495 --- /dev/null +++ b/.config/zsh/oh-my-zsh/plugins/forklift/forklift.plugin.zsh @@ -0,0 +1,128 @@ +# 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 +# Updated to support ForkLift 4 by Michal Szymanski (misiektoja) +# +# 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 <