dot/.config/scriptrc/xclipimg.sh
2023-07-22 14:49:09 +02:00

5 lines
120 B
Bash

xclipimg() {
filename=$1
mimetype="$(file $1 -b --mime-type)"
xclip -selection clipboard -t $mimetype -i $filename
}