From 3a98394f405fe4203df00cf73060390a306cc23d Mon Sep 17 00:00:00 2001 From: BarbUk Date: Thu, 10 Nov 2016 19:51:06 +0400 Subject: [PATCH] integration with clipmenu https://github.com/cdown/clipmenu --- snippy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snippy b/snippy index be07a30..eaab71b 100755 --- a/snippy +++ b/snippy @@ -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}")"