0

I've done some googling, and looking around this stack overflow, but this one seems to elude me.

How might I reduce/edit the displayed bash name on the terminal prompt? I.E.

This:

fresearch@fresearch-MM061:~/Desktop/blog$

To:

|>$

I (sort of) know who I am, and (sometimes) know where I am. I have a small laptop screen, and would rather have the screen space. I have read through some of the bash man pages, but I decided not to start mucking about with vital settings files, and no idea what I was doing.

Thoughts?

Thanks!

1

What you want is called bash prompt

To get |>$ simply run PS1="|>$" in your terminal, if this is what you want then you should edit your .bashrc to make it permanent.

Find section looked like this:

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi

And if you are not using colored prompt, then correct line after word else before fi:

PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

to this line

PS1='${debian_chroot:+($debian_chroot)}|>$'
| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.