dotfiles/bin/executable_get-gitlab-short...

7 lines
134 B
Bash

#!/usr/bin/env bash
url="${1}"
shortcode=$(get-gitlab-shortcode "${url}")
markdown="[${shortcode}](${url})"
echo $markdown | wl-copy