Skip to content

Instantly share code, notes, and snippets.

@pevers
Last active June 12, 2020 10:42
Show Gist options
  • Save pevers/ab75c9177d0b868a388616bc07f068cd to your computer and use it in GitHub Desktop.
Save pevers/ab75c9177d0b868a388616bc07f068cd to your computer and use it in GitHub Desktop.
#!/bin/bash
REPO=$(git remote get-url origin | sed -n 's/^.*:\(.*\).git$/\1/p')
LINK="https://github.com/$REPO/issues/new"
if [ -x "$(command -v xdg-open)" ]; then
xdg-open $LINK
exit 0
fi
open $LINK
@pevers
Copy link
Author

pevers commented Jun 12, 2020

.zshrc/.bashrc/.bash_profile

alias pr='sh /path_to_script/issue.sh'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment