-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Feature request: now whoami
#585
Comments
Yep. |
Not logged in: ``` $ now whoami > Not currently logged in! Please run `now --login`. ``` Logged in, stdout is a TTY: ``` $ now whoami > tootallnate $ now switch zeit $ now whoami > zeit ``` Stdout is NOT a TTY: ``` $ echo "Logged in to Now as $(now whoami)" Logged in to Now as tootallnate ``` Closes #585.
Not logged in: ``` $ now whoami > Not currently logged in! Please run `now --login`. ``` Logged in, stdout is a TTY: ``` $ now whoami > tootallnate $ now switch zeit $ now whoami > zeit ``` Stdout is NOT a TTY: ``` $ echo "Logged in to Now as $(now whoami)" Logged in to Now as tootallnate ``` Closes #585.
Seems fixed by 24ce1c2 However, I need the same thing for current team. I saw a revert and a new version without team (for consistency). My problem is: I want to show (in prompt) current team or current user if there is no team. I had to parse This is my current solution: https://github.com/chabou/pure-now/blob/v1.5.4/now_functions.zsh I can make a PR for this new command if you give me its name:
|
Any advice @leo ? |
Simple but effective command to know which account you are in.
$ now whoami > renatorib
(I don't know how Teams works, but perhaps it can help with Teams too)
The text was updated successfully, but these errors were encountered: