Skip to content

Introduces some options, for example user@host info prompt#36

Closed
TimB87 wants to merge 7 commits intoxcambar:masterfrom
TimB87:newoptions
Closed

Introduces some options, for example user@host info prompt#36
TimB87 wants to merge 7 commits intoxcambar:masterfrom
TimB87:newoptions

Conversation

@TimB87
Copy link

@TimB87 TimB87 commented Feb 9, 2020

So, this started out with me rebasing #35 against current HEAD, but I always want to know which user@host I am currently on, so I made it an option for the prompt purs prompt -u or purs prompt --userhost
I also gave it a nice colour to go along with the overall theme (hopefully, I'm a bad designer), and the username changes to red if you are root.

Also there is an option to change the default prompts symbol and COMMAND_SYMBOL as well as the option to print the newline prior every precmd or not.

I had problems with reading the information on --git-detailed precmd, as the symbols overlapped the text. I fixed that with one white space each where it was needed for me.

I am fairly new to Rust, so I am happy to discuss changes and or other option choices, but I hope you like the general idea as well.

https://i.imgur.com/zcstti8.png

@TimB87 TimB87 requested a review from xcambar February 9, 2020 14:45
@TimB87
Copy link
Author

TimB87 commented Feb 9, 2020

Looking at #35, I would love to make that an option as well. @nkoehring @tbehner any thoughts?

This adds an SSH only option for the user/host info prompt.
`purs prompt` needs to be run with -u and additionally -s to only
show the info if the shell is run inside an SSH session.
@TimB87
Copy link
Author

TimB87 commented May 19, 2024

closed due to inactivity

@TimB87 TimB87 closed this May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant