Hey folks 👋
While practicing Bash commands in my home lab, I found a quick way to customize the terminal name — and it honestly makes your setup feel way more personal and DevOps-ready 😎
Instead of the default name:
root@pve:~#:~$
You can make it something like:
devlab@ubuntu:~$
⚙️ Try it yourself:
For Mac (Zsh) or Ubuntu (Bash) users — open your config file:
nano ~/.zshrc # for Mac
nano ~/.bashrc # for Ubuntu
Add this line:
PROMPT='devlab@lab %1~ %# ' # zsh
PS1='devlab@lab:\w\$ ' # bash
Save and reload:
source ~/.zshrc || source ~/.bashrc
Optional — rename your system too:
sudo hostnamectl set-hostname devlab
It’s a small tweak, but it really makes your terminal feel like your own playground.
If you’ve customized yours too, drop a screenshot or name idea below 👇