From d83d4a486d95553eade7fab3f8a37dc8c5b0bffc Mon Sep 17 00:00:00 2001 From: Riley Shaw Date: Tue, 20 Oct 2015 17:27:19 -0700 Subject: [PATCH] Add "cd to the Folder Currently Open in Finder" If multiple windows are open, it chooses the top-most one. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index ed5cab8..0ca2e21 100644 --- a/README.md +++ b/README.md @@ -436,6 +436,12 @@ defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true ### Opening Things +#### Change Working Directory to Finder Path +If multiple windows are open, it chooses the top-most one. +```bash +cd "$(osascript -e 'tell app "Finder" to POSIX path of (insertion location as alias)')" +``` + #### Open URL ```bash open http://www.github.com