Skip to content

Instantly share code, notes, and snippets.

@tobym
Created August 30, 2012 19:16
Show Gist options
  • Save tobym/3538214 to your computer and use it in GitHub Desktop.
Save tobym/3538214 to your computer and use it in GitHub Desktop.
My pwdx implementation for a mac
#!/bin/bash
lsof -a -p $1 -d cwd -n | tail -1 | awk '{print $NF}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment