background preloader

Bash scripts

Facebook Twitter

Color Bash Prompt. There are a variety of possibilities for Bash's prompt (PS1), and customizing it can help you be more productive at the command line.

Color Bash Prompt

You can add additional information to your prompt, or you can simply add color to it to make the prompt stand out. Applying changes To apply changes from this article to your .bashrc (without ending subshells), do: $ source ~/.bashrc Basic prompts. Unix / Linux Bourne / Bash Shell Scripting Tutorial [ steve-parker.org ] Certain characters are significant to the shell; we have seen, for example, that the use of double quotes (") characters affect how spaces and TAB characters are treated, for example: $ echo Hello WorldHello World $ echo "Hello World"Hello World So how do we display: Hello "World" ?

Unix / Linux Bourne / Bash Shell Scripting Tutorial [ steve-parker.org ]

$ echo "Hello "World""