function tjclip --description 'Log contents of the clipboard to the daily journal, via the _tj script' --argument message if test -n "$message" echo "$message: $(xclip -o -clipboard clipboard)." | _tj else echo "Please give me your message, wrapped in quotes." end end