dotfiles/.config/shell/bin/copy-path

8 lines
162 B
Bash
Executable file

#!/bin/sh
# copies the passed arguments to the clipboard
CLIPBOARD_MANAGER="${CLIPBOARD_MANAGER:-xsel -b}"
for f; do
realpath "$f"
done | $CLIPBOARD_MANAGER