github issues with ghi and multiple users

I have recently started to use ghi - a command line github issues client. Out of the box it only supports a single github account. Personally I like to separate my private from work related coding though. Thus adding two aliases to ~/.bashrc allows me to quickly switch from one account to the other (a task that is really tedious in the browser):

# aliases for ghi (github client)
alias ghi-USER-A='GHI_TOKEN="A git oauth token" && /opt/ghi'
alias ghi-USER-B='GHI_TOKEN="B git oauth token" && /opt/ghi'

Btw. one gets the hashes from running ghi without GHI_TOKEN set and no [ghi] block in ~/.gitconfig.


Want to comment? Send me an email to blog-comments-2018 at lemmster d.t de and I'll paste it here (I won't publish your address). Why don't you use an external comment service like disqus, you ask? Well, I like to keep this site under my control, comments included. You can use markdown to format your comment.