How To Change Terminal Username on Mac OS

preview_player
Показать описание
Change or Hide Terminal username on Mac OS with simple 1 command.

Command:-
export PROMPT="🚀 %1~ %# ";clear;

Method 2:-
1. vim ~/.bash_profile
2. press i to edit
3. export PROMPT="🚀 %1~ %# ";clear;
4. esc :wq
------------------------------------------------------------------------
Subscribe Curious Grids 💫
Connect with us on :-

Thank you for watching :)
------------------------------------------------------------------------
Tags:-
how to change terminal username mac,how to change username on terminal,how to change username on terminal mac,terminal,mac terminal,bashrc,bash_profile,how to hide terminal username,how to hide terminal host,how to hide terminal path,how to remove terminal username on mac,Mac terminal hide username,hide terminal username on mac os big sur,mac terminal tricks,terminal preferences mac
------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

Great explanation. It worked perfectly. Thank you for sharing it!

lidipm
Автор

Thanks brother. The first worked seamlessly

johngana
Автор

Thank you for showing both ways, very helpful and clear!!

nishatsalsabil
Автор

THANK YOU SO MUCH i spent like 4 hours trying to do it, i've watched so many tutorials but no one useful, until i found yours thank you so much❤❤

lauragrossi
Автор

Over a year later and the 1st method worked for me thanks.

mart
Автор

Was not sure but tried method 1. It worked. Thank you!

jizzo
Автор

Thank you so much for this! Is there also a way to hide the username at the very top, or change it?

shinybri
Автор

thanks both methods are very helpful. first one is solved my issue.

SyedVkax
Автор

Thanks, it was annyoying me. good work.

NitishKumar-zqvb
Автор

The first worked for me, but the second didn't work. My bash_profile is empty so I'm guessing my zsh shell isn't referencing from it.

jeffpark
Автор

did not work for me.. haven't changed my name :(

veronikak
Автор

Your command didn't work for me but worked with : export PS1="🚀~# ";clear;

manhte
Автор

the first method did not work. I also tried the second method but after I type enter the line with bash_profile,  this comes up:

E325: ATTENTION
Found a swap file by the name "~/.bash_profile.swp"

I tried entering uppercase E to edit, and following the steps but nothing changed


now when I enter the vim bash_profile line, there are two lines but nothing can be edited

NuclearFlan