greenclip
greenclip copied to clipboard
[Feature Request / Question] delete last clipboard ( e.g. password)
I write a script to remove my recent clipboard but it seems broken the greenclip.history file. Is there any work around?
#!/usr/bin/env bash
# grep only first line
RECENTLY=$(greenclip print | grep -m1 .)
echo "$RECENTLY"
# remove what i grep
sed -e s/"$RECENTLY"//g -i "$HOME/.cache/greenclip.history"
It would be nice to be able to remove any entry, something like:
greenclip clear 15
This would remove the 15th entry in the history file. This way we could manage the history file.