#!/usr/bin/env bash selected="$(python ~/bin/snippet.py | fzf -e -i )" #strip tags and any trailing space before sending to wl-copy echo -e "$selected"| sed -e 's/tags\:\.\*\$//;$d' | wl-copy