Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
timf
3y ago
0 comments
Save
Share
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
0 comments
2 comments · 1 top-level
top
newest
oldest
cerved
3y ago
· 1 in thread
why not just alias?
timf
OP
3y ago
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.
j
/
k
navigate · click thread line to collapse