Skip to content

Instantly share code, notes, and snippets.

@f000
Created January 26, 2015 21:05
Show Gist options
  • Save f000/ec6683c799d95ef9fb54 to your computer and use it in GitHub Desktop.
Save f000/ec6683c799d95ef9fb54 to your computer and use it in GitHub Desktop.
TextMate 2 – Copy current file path to clipboard
#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
echo -n "$TM_FILEPATH" | pbcopy
echo "Path $TM_FILEPATH copied to clipboard."
@loadedsith
Copy link

thanks!

@ccmcbeck
Copy link

Nice.
Cmd + Shift + C conflicts with TextMate | Go | Computer
I use Alt + C

@ahmedfahmy94
Copy link

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment