Add new scripts

This commit is contained in:
2022-03-18 00:38:39 +03:00
parent 5630243ef1
commit d051d7ddca
19 changed files with 147 additions and 116 deletions

11
scripts/cpyout Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
tmpfile=$(mktemp /tmp/cmd-output.XXXXXX)
trap 'rm "$tmpfile"' 0 1 15
echo "\$ $@" | tee $tmpfile
eval "$@" |& tee -a $tmpfile
cat $tmpfile | xclip -sel c