This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/bin/copy-git-forge-url

8 lines
No EOL
188 B
Bash
Executable file

#!/usr/bin/env sh
url="$(gitforge-url.ts "$1")"
case "$(uname)" in
Linux*) echo "$url" | clip;;
Darwin*) echo "$url" | pbcopy;;
*) echo "OS not supported"; exit 1;
esac