mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Trying nix-doom-emacs
This commit is contained in:
parent
2ae854d277
commit
2fa2da4328
8 changed files with 2943 additions and 13 deletions
|
@ -0,0 +1,10 @@
|
|||
#!/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"
|
||||
else
|
||||
echo $1 | xclip -selection clipboard -t text/plain &> /dev/null
|
||||
exit
|
||||
fi
|
||||
exit
|
Loading…
Add table
Add a link
Reference in a new issue