2
I want to copy path of one file, but the directory isn't open in Finder, it is opened in terminal. Is it possible by invocation <utility> filename
to copy full file path string to the Mac OS clipboard? Like copying the output of the following command there.
`pwd`/filename
Added the following line to my .zshrc
function cn { echo -n $(pwd)/$1 | pbcopy }
Just aliasing don't work because of arguments. Exact same string should work in bash too.
pbcopy
is just what I need, will accept this answer as soon it will become possible, thank you. – eiennohito – 2013-07-29T14:13:45.187