Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples for inspiration #23

Open
jxu opened this issue Dec 31, 2023 · 2 comments
Open

Add examples for inspiration #23

jxu opened this issue Dec 31, 2023 · 2 comments

Comments

@jxu
Copy link

jxu commented Dec 31, 2023

To get the mind joggin

@Ronny12301
Copy link

Ronny12301 commented Jul 14, 2024

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?

@jxu
Copy link
Author

jxu commented Aug 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants