From f5b20b55560e7b8295d7c6fe53a4df7094b5f2f0 Mon Sep 17 00:00:00 2001 From: Cian Hatton Date: Tue, 23 Aug 2022 10:53:45 +0100 Subject: [PATCH] adding additional functions to bash_profile --- .bash_profile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.bash_profile b/.bash_profile index 36cf4a9..68f96e5 100644 --- a/.bash_profile +++ b/.bash_profile @@ -1,3 +1,5 @@ +export PATH="$PATH:/opt/homebrew/bin" + function _branches() { if [ -n "$1" ]; then echo "$1" @@ -24,6 +26,16 @@ function monitors() { # display git branch in the terminal prompt export PS1='\[\e[1;91m\][\w]\[\e[0m\]\[\e[32m\]$(_parse_git_branch)\[\e[00m\]$ ' + +function my_issues(){ + gh issue list --assignee @me +} + +function my_prs(){ + gh issue list --assignee @me +} + +# new_issue_branch creates an issue branch based off of a github issue function new_issue_branch() { local issueNumber=$1 local issueDescription=$(gh issue view ${issueNumber} --repo cosmos/ibc-go --json title | jq -r .title | awk '{print tolower($0)}' | tr " " - | sed s/'[`:()]'//g)