Commit ae6bb920 by Fred Smith

don't overwrite clipboard when I hit esc

parent 35b6f22b
......@@ -4,6 +4,7 @@ cd ~/Documents/snips
SNIPPETFILE=$((for FILE in *; do echo "$FILE:: $(head -n 1 "$FILE")"; done) | fzf -d '::' | sed -e 's/::.*//')
cat "$SNIPPETFILE" | xclip -selection clipboard
sleep .5
if [ "$SNIPPETFILE" != "" ]; then
cat "$SNIPPETFILE" | xclip -selection clipboard
sleep .5
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment