mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Revived copy-link-or-file!
This commit is contained in:
parent
bdffc3809d
commit
23a2dcc1a1
4 changed files with 14 additions and 4 deletions
|
@ -1,5 +1,4 @@
|
|||
#!/bin/sh
|
||||
#command -v xclip >/dev/null 2>&1 || { echo "Need command xclip. Aborting." >&2; exit 1; }
|
||||
if [[ -f "$1" ]]; then
|
||||
TYPE=$(file -b --mime-type "$1")
|
||||
xclip -selection clipboard -t "$TYPE" -i "$1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue