gh cli current auth user item
Jomik opened this issue · 0 comments
Jomik commented
Describe the solution you'd like
A simple github item that shows the user I am currently authenticated as on the gh cli.
Additional context
I have tried to create one, but the prompt is "weird.
function _tide_item_gh
_tide_print_item gh $tide_gh_icon' ' (gh api user -q ".login")
end
set -U tide_gh_color CCFF00
set -U tide_gh_bg_color normal
set -U tide_gh_icon
It shows like this
There is also an issue if I run gh auth switch
, it will show the old user for one prompt. But I think that is minor.