This commit is contained in:
BarbUk 2016-11-10 19:51:06 +04:00
parent 91246b35e3
commit 3a98394f40

5
snippy
View File

@ -72,6 +72,11 @@ run(){
# just return if nothing was selected
[[ -z "${FILE}" ]] && return 1
if [[ ${FILE} == 'clip' ]]; then
$(clipmenu ${MENU_ARGS})
exit 0
fi
if [ -f "${DIR}/${FILE}" ]; then
# Put the contents of the selected file into the paste buffer.
content="$(bashdown < "${DIR}/${FILE}")"