Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

PetroGromovo's avatar

Can I show homestead bash n different font/color/view ?

Working on laravel site in homestead bash(with ububtu 20.04 OS hosting) I wonder if there is a way to show homestead bash in different font/color/view ? I have periodically switch from homestead bash to OS hosting bash and really confuse where I am this moment...

Thanks in advance!

0 likes
6 replies
tisuchi's avatar

@petrogromovo

Yes, it is possible to customize the appearance of the Bash terminal in Homestead.

To do this, you can edit the ~/.bashrc file in your home directory and add the desired customization commands. The ~/.bashrc file is executed every time you start a new Bash shell, so any changes you make to this file will take effect immediately.

Here are a few examples of customization commands you can add to the ~/.bashrc file:

To change the color of the prompt, you can use the PS1 variable:

# Set the prompt to red
PS1='\[\e[0;31m\]\u@\h:\w$\[\e[m\] '

To change the font, you can use the setfont command:

# Set the font to "Terminus"
setfont terminus-12

To set a custom background color or image for the terminal, you can use the setterm command:

# Set the background color to blue
setterm -background blue

# Set the background image to a file called "bg.jpg"
setterm -backdrop bg.jpg
1 like
PetroGromovo's avatar

@tisuchi Thanks! I tried to modify .bashrc file as you propose (text color is changed for me) and looks like text of color is changed to my OS console, but homestead console is the same ? I would prefer vice-versa...

newbie360's avatar

@PetroGromovo just open another console tag in your editor or in Ubuntu console open a new tag

for example: in vscode use one console tag for main operation command, another new console tag just for npm run dev

PS. when you installed https://git-scm.com/ in M$ Windows

you will have a new Git Bash console, run npm run dev and then minimize the window, now i can focus write code on vscode

of couse you can open any console tag in vscode.

PetroGromovo's avatar

@tisuchi Sure I restarted, and I see in my hosting kubuntu red color for text of console. But in vagrant@homestead color/font is unchanged

Please or to participate in this conversation.