-
Notifications
You must be signed in to change notification settings - Fork 589
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
How do I hide the “user@hostname” info #39
Comments
Open your prompt_context() {
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
fi
} This makes only your username to appear. If you don't want that too, just comment out this line |
This PR will help: #40 |
May I ask why the Perhaps I miss something, but it seems like a double-check, when |
How to set agnoster theme in termux please tell me |
In my .zshrc I did:
:) |
@itsmehemant123 ty so much |
thanks for that! |
I think this is in case you're |
Similar to @kud, but modified my prompt to work in agnoster. I updated the prompt_context() {
prompt_segment $CURRENT_BG default " 🌈 "
} |
Simply add |
@itsmehemant123 's solution didn't quite work for me. For me, I just wanted to show my username, without my '@ hostname'. Original
I just removed Updated
|
wow, nothing helped. I'm using |
Iam using oh my zsh and ur theme is listed there how can I install ur theme, pls tell me |
On MacOS 10.15 Catalina in 2021 year
For example, you can:
|
How to hide the owner and group names when doing listings (ls -la) for instance? |
Make sure you add this line to the
|
Thanks! The last thing would be how to hide or change the user name on the top of the Terminal window? |
In order to achieve what you want, in the First uncomment add this line Source https://superuser.com/questions/79972/set-the-title-of-the-terminal-window-to-the-current-directory |
In prompt_context() {} |
woooo tankyou bro |
It is said to do the following:
Optionally set DEFAULT_USER to your regular username followed by prompt_context(){} in ~/.zshrc to hide the “user@hostname” info when you’re logged in as yourself on your local machine.
What does that look like?
The text was updated successfully, but these errors were encountered: