9 lines
158 B
Bash
Executable File
9 lines
158 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ $# -eq 0 ]; then
|
|
xclip -selection c
|
|
else
|
|
file_type=$(file -b --mime-type "$1")
|
|
xclip -selection c -t $file_type < $1
|
|
fi
|