dotfiles/.local/bin/scripts/plantclip

8 lines
184 B
Bash
Executable File

#!/bin/sh
# plantuml from xclip selection clipboard
file="/tmp/plantuml-xclip-$(date +%s).plantuml"
echo "@startuml" >$file
xclip -o >>$file
echo -e "\n@enduml" >>$file
plantuml $file