←back to thread

2039 points Gadiguibou | 4 comments | | HN request time: 0.001s | source
1. nine_k ◴[] No.36493127[source]
Those are so useful that I wrote trivial shell functions that do the same under Linux.
replies(1): >>36493204 #
2. timf ◴[] No.36493204[source]
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
replies(1): >>36494251 #
3. cerved ◴[] No.36494251[source]
why not just alias?
replies(1): >>36500438 #
4. timf ◴[] No.36500438{3}[source]
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.