Timo Tijhof on Nostr: #[0] #[1] Here's the way I do it: https://github.com/krinkle/dotfiles#screenshots ...
npub1c353w465eg94sjctq7kh03f9zajjqqsg9wzmg20gc8tvqwm6u54sm89pmh (npub1c35…9pmh) npub1yw6mnhpwuhgu3mdq5jvw7tmwa2qsxn5r3flf0lwc3hur6eywk73qytwjnq (npub1yw6…wjnq)
Here's the way I do it:
https://github.com/krinkle/dotfiles#screenshots
PS1="\[$clr_user\]\u\ at $host in \w\$(_dotfiles-git-ps1)\[$CLR_NONE\] \$ "
Where dotfiles-git-ps1 is defined at, and displays branch, plus an optional coloured symbol after it indicating whether the working copy is clean or not https://github.com/Krinkle/dotfiles/blob/v2022.05/hosts/primary/index.bash#L141
Here's the way I do it:
https://github.com/krinkle/dotfiles#screenshots
PS1="\[$clr_user\]\u\ at $host in \w\$(_dotfiles-git-ps1)\[$CLR_NONE\] \$ "
Where dotfiles-git-ps1 is defined at, and displays branch, plus an optional coloured symbol after it indicating whether the working copy is clean or not https://github.com/Krinkle/dotfiles/blob/v2022.05/hosts/primary/index.bash#L141