Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh cli current auth user item #477

Open
Jomik opened this issue Jan 5, 2024 · 0 comments
Open

gh cli current auth user item #477

Jomik opened this issue Jan 5, 2024 · 0 comments
Labels
🌊 enhancement New feature or request

Comments

@Jomik
Copy link

Jomik commented Jan 5, 2024

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
image
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.

@Jomik Jomik added the 🌊 enhancement New feature or request label Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌊 enhancement New feature or request
1 participant