1. copy pwd command result to clipboard
write this.
$ pwd | pbcopy
you can copy pwd result to macOS clipboard.
2. set alias
to avoid search like this...
"how to copy pwd command result to clipboard on mac"
(on google word search)
you can set alias.
$ alias pwdcp 'pwd | pbcopy'
try
pwdcp
and Command + V.
you can did it, right?
if not, check your os is really really macOS ;(
3. save function on fish (optional)
$ funcsave pwdcp
that's all. see you!
enjoy :)