Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nine_k
on June 27, 2023
|
parent
|
context
|
favorite
| on:
macOS command-line tools you might not know about
Those are so useful that I wrote trivial shell functions that do the same under Linux.
timf
on June 27, 2023
[–]
Since I'm bouncing between OSX and Linux a lot, I have a shell script with the same name on each that boils down to:
if [ `uname` == "Darwin" ]; then pbcopy else xsel --clipboard fi
cerved
on June 27, 2023
|
parent
[–]
why not just alias?
timf
on June 28, 2023
|
root
|
parent
[–]
Could be an alias, I have a limited set of aliases for each type of system. But I keep a repository of hundreds of personal shell scripts and it fit better there.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: