Blob


1 # clip
3 clip is a small utility to manage the X clipboard sensibly. It's
4 meant to be used interactively, not in scripts.
6 if the standard input is not a tty, slurp everything (except the last
7 newline!) to the clipboard
9 if [ ! -t 0 ]; then
10 exec xclip -r -selection clipboard >/dev/null
11 fi
13 otherwise output its contents
15 exec xclip -o -selection clipboard