bash PS1 Generator and other Useful Stuff

in «tip» by Michael Beard
Tags: , , , , ,

PS1 Generator

A nice site to play with how you can manage/configure your bash prompt. Bash Prompt Generator

Other useful PS1 stuff

Found some tips on dynamic bash script. I tried to do some stuff and my attempt is shown below. It didn't work for the situation that I wanted, but it has good information.

PROMPT_COMMAND=prompter

function prompter() {
    export PS1="$PS1 \n : "
}

Here is another good/interesting site: prompt customization

And, another: customize shell prompt. This has some interesting hints on some of the git functions to show things like bash-it, so might be a good source.

This one has some awesome examples and ways of doing things that I hadn't thought of -- bash PS1 examples

A precmd option for bash - bash precmd article. It also has some interesting links in it as well.

I think I put another prompt generator somewhere as well.

An older article, but has some interesting things that I might want to try that don't necessarily tie to the PS1 variable: (Not So) Stupid Shell Tricks