Skip to content

Instantly share code, notes, and snippets.

View smacintyre's full-sized avatar

Shawn MacIntyre smacintyre

View GitHub Profile
@smacintyre
smacintyre / cdf.fish
Created May 21, 2020 02:39
cd to Finder in fish
function cdf
set -l target "."
if command -v osascript > /dev/null
set target (osascript -e \
'tell application "Finder" to get POSIX path of (target of front Finder window as text)')
end
cd $target
end

Keybase proof

I hereby claim:

  • I am smacintyre on github.
  • I am smacintyre (https://keybase.io/smacintyre) on keybase.
  • I have a public key ASAthzyiUDZ_fKg3o82cxFotjLryLNi1g0xRVw1ju6Tz7go

To claim this, I am signing this object: