As a default, the terminal prompt shows something like:
user@system:/folder1/folder2/folder3/folder4$
the deeper you go into the filesystem, the less space is left for typing in commands. Can I change this to only show something like:
>
I mean, I can just type pwd
to show where I am at. 😉
Best Answer
That results in
oli@bert:
for my prompt.If you really want something as minimalist as you ask for, try this:
You can attach that to the end of your
~/.bashrc
file to have it persist between logins.You can also get creative with some colours. Here's what I use on my servers:
Giving (it's easier to see on a full black background):
Glossary of acceptable characters in PS1