Closed kbd closed 3 years ago
@kbd Hey, thank you for sharing your cool script! I was looking into automating that, while I decided to do not that to clearly distinguish the flags for sub-commands.
Great, makes sense, just wanted to share since not everyone knows about inspecting "isatty". Thanks!
Hi, just wanted to share this trick I use for regular
pbcopy
andpbpaste
that lets me do both with one command.My
cb
("clipboard") program can be used everywherepbcopy
andpbpaste
can and it figures out the right thing to do based on how it's used:https://github.com/kbd/setup/blob/master/HOME/bin/cb