[bin] Use clipboard if no parameter is given to gitlab-shortcutter
This commit is contained in:
parent
e8686612db
commit
46d11ecac7
|
@ -1,6 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
url="${1}"
|
||||
if [ -z "${url}" ]; then
|
||||
url=$(wl-paste)
|
||||
fi;
|
||||
shortcode=$(get-gitlab-shortcode "${url}")
|
||||
markdown="[${shortcode}](${url})"
|
||||
echo $markdown | wl-copy
|
||||
|
|
Loading…
Reference in New Issue