bash-prompt-generator icon indicating copy to clipboard operation
bash-prompt-generator copied to clipboard

Add examples for inspiration

Open jxu opened this issue 1 year ago • 3 comments

To get the mind joggin

jxu avatar Dec 31 '23 05:12 jxu

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?

Ronny12301 avatar Jul 14 '24 00:07 Ronny12301

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.

jxu avatar Aug 17 '24 18:08 jxu

PS1='\033[01;32m]\d--\033[01;33m]$PWD--\033[01;36m]!--\033[01;31m]\u@\h: \033[00;37m]$\n$>>> \033[00;36m] '

Sebman56 avatar Apr 26 '25 14:04 Sebman56