bash-prompt-generator
bash-prompt-generator copied to clipboard
Add examples for inspiration
To get the mind joggin
PROMPT_COMMAND='PS1_CMD1=$(__git_ps1 " (%s)")'; PS1='\[\e[38;5;40;1m\]\u\[\e[39m\]@\[\e[38;5;33m\]\H\[\e[0m\]:\[\e[95;1m\]\w\[\e[96;2;3m\]${PS1_CMD1}\[\e[0m\] \n\$ '
like this?
Sure. My minimal PS1 looks like
'\w\n$ '
which does the job without clutter. I also like having the command start on a new line, so being deep in directories doesn't make the command start on the right side of the screen.
PS1='\033[01;32m]\d--\033[01;33m]$PWD--\033[01;36m]!--\033[01;31m]\u@\h: \033[00;37m]$\n$>>> \033[00;36m] '