diff options
| author | realtradam <[email protected]> | 2023-08-14 18:16:08 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-08-14 18:16:08 -0400 |
| commit | 440f126691c42e45b7c85e130c0bec9f6a8ab0df (patch) | |
| tree | 38f04bf592476ef202eb30b6dbfbcae99ff33081 /clip | |
| download | Scripts-master.tar.gz Scripts-master.zip | |
Diffstat (limited to 'clip')
| -rwxr-xr-x | clip | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -0,0 +1,7 @@ +#!/bin/bash + +if [ -p /dev/stdin ]; then + printf "%s" "$(cat)" | xclip -selection clipboard +else + echo "Pipe data to this program to copy it into your clipboard" +fi |
