i only use clippy with file content, not file name
usefull with snippet like: $(pwgen -s 32 1)
This commit is contained in:
parent
11862dc492
commit
36ccda5f30
5
snippy
5
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
|
||||
else
|
||||
${FILE} &> $TMPFILE # execute as bashcommand
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user