Customizing Your Terminal: Adding Color and Information to Your Prompt

Customizing Your Terminal: Adding Color and Information to Your Prompt

Corey Schafer

8 лет назад

204,478 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Simple Doughnuts
Simple Doughnuts - 03.05.2023 01:39

wow -- this was FUNAF! 🩵

Ответить
Huang Zemin
Huang Zemin - 13.11.2022 10:40

HI! the color only appears when I source .bashrc. When I open a new terminal, the changes are gone, how do I solve this?

Ответить
ogoeroige
ogoeroige - 30.09.2022 22:04

Why does mine not even show my username, if I put this

PS1="\u@\h \W -> "

this is the actual outcome in the command line:

\u@\h \W ->

Ответить
Christopher Mannes
Christopher Mannes - 03.09.2022 06:46

Can anyone explain what the \[ and the \] are actually doing in Corey's bash commands?

Ответить
Carson Williams
Carson Williams - 31.08.2022 00:51

I just got a MacBook for work where I am training as a developer , and my environment was all messed up. These videos were so helpful! Thank you! Legend.

Ответить
PATROLLA, ALLEN S.
PATROLLA, ALLEN S. - 27.07.2022 18:30

Thank you so much. :)

Ответить
Irene S
Irene S - 27.07.2022 17:37

Hi! This is amazing! However, when I run SSH, all of my customisations disappear! How can I make my Terminal copy the customisations over when I access my uni network?

Ответить
Steven Spain
Steven Spain - 05.04.2022 00:51

Hello Corey, I'm a big fan trying to learn python from your tutorials. Today I made a major mistake; I went into my .zshrc file, uncommented line 51; now when I open the terminal it opens for approx. 2 sec. and closes. Here is the message (/Users/admin/.zshrc:51:uncomment) but screen is frozen, for 2 seconds, then nothing. Is there any advice? Thanks in advance.

Ответить
Chags G
Chags G - 15.03.2022 17:48

The special characters (like \u etc) do not work for me at all (MacOS Catalina). Could someone tell me where I get these?

Ответить
Kenneth Bass
Kenneth Bass - 05.03.2022 05:37

Always a lot of really good information and examples in plain language.

Ответить
Joe Schmoe
Joe Schmoe - 06.11.2021 18:42

Logged in a root, but can't insert a line after vim:ts=4:sw=4 Any ideas on what I'm doing wrong?

Ответить
Isaac Maag
Isaac Maag - 08.10.2021 08:53

The BEST video about this. Love the detail. Seriously man great work.

Ответить
peanut butter
peanut butter - 01.10.2021 22:34

Thanks Man.

Ответить
Emme M
Emme M - 08.09.2021 11:00

For Big Sur and above

%n $USERNAME
%m The hostname up to the first ‘.’
%. Current directory
%% Character '%'
%~ Full directory

These need to be in the .zshrc file to be used for new terminals automatically

Ответить
Baber Ali
Baber Ali - 27.07.2021 07:22

very nice explanation

Ответить