From 8a2e1006b3b272126332aa064f3ad95387129544 Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Thu, 13 Feb 2025 14:13:49 +0530 Subject: new dot files --- .../oh-my-zsh/plugins/forklift/forklift.plugin.zsh | 122 +++++++++++++++++++++ 1 file changed, 122 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..8588948 --- /dev/null +++ b/.config/zsh/oh-my-zsh/plugins/forklift/forklift.plugin.zsh @@ -0,0 +1,122 @@ +# 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 [] +# +# 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 <