#!/usr/bin/env bash url="${1}" if [ -z "${url}" ]; then url=$(wl-paste) fi; shortcode=$(get-gitlab-shortcode "${url}") markdown="[${shortcode}](${url})" notify-send "${shortcode}" "${url} \ncopied to clipboard" echo "${markdown}" | wl-copy