From 36ccda5f30be68f7ecb6bf7d0ebf7073a25aae86 Mon Sep 17 00:00:00 2001 From: BarbUk Date: Sun, 29 Jan 2017 02:43:23 +0400 Subject: [PATCH] i only use clippy with file content, not file name usefull with snippet like: $(pwgen -s 32 1) --- snippy | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/snippy b/snippy index 53f35d9..9a3a943 100755 --- a/snippy +++ b/snippy @@ -80,12 +80,7 @@ run(){ else content="$(bashdown < "${DIR}/${FILE}")" fi - # clip launch copyq, don't pass the filename in buffer - if [[ ! ${FILE} == "clip" ]] && [[ "${#content}" == 0 ]]; then - printf "%s" "${FILE}" > $TMPFILE - else - printf "%s" "$content" > $TMPFILE - fi + printf "%s" "$content" > $TMPFILE else ${FILE} &> $TMPFILE # execute as bashcommand fi