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.