add copy-path: copies the passed arguments to the clipboard

This commit is contained in:
PowerUser64 2023-05-13 16:08:02 -07:00
parent fceac85610
commit 412165297c

6
.config/shell/bin/copy-path Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
# copies the passed arguments to the clipboard
CLIPBOARD_MANAGER="${CLIPBOARD_MANAGER:-xsel -b}"
printf '%s ' "$@" | $CLIPBOARD_MANAGER