LoginSignup
0
0

More than 3 years have passed since last update.

Enable copying "pwd" result to clipboard in macOS(set alias on fish)

Posted at

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 :)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0