DEV Community

Author
Author

Posted on

How to Set PS1 / What's your PS1?

There is an active blogspace at this StackOverflow post about how to set PS1.

https://stackoverflow.com/questions/6883760/git-for-windows-bashrc-or-equivalent-configuration-files-for-git-bash-shell

The theme primarily revolves around answers to "What's your PS1?"

For the uninitiated, PS1 is the prompt in one's terminal.

Image description

My PS1 is set in .bashrc.

export PS1='\[\]\[\]\[\033]0;$TITLEPREFIX:$PWD\007\]\[\033[32m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]$ \[\]\[\]'
Enter fullscreen mode Exit fullscreen mode

What's your PS1?! 🍸

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more