Colorization in PS1 #54
Unanswered
FOSSilizedDaemon
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Every font style notation starting with Instead of:
Try this:
To suppress the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have been working on porting my shell configuration from zsh to yash. As I started learning shell scripting using pdksh and only ever learned POSIX shell script this has been fairly easy, but there is one respect that I cannot for the life of me figure out properly in Yash; that is the prompts.
My prompt is nothing special.
I have not gotten to implementing the
-(git repository/direnv)
part, but have implemented the return_status part. However, I was only able to implement it in a jankyish way. Normally, how I like to implement this is with the following.In my mind this should work, but it doesn't. When I run a shell,
return_status
shows as blank. If I remove the colorization codes fromreturn_status_prompt
, thenreturn_status
will show properly. I have not been able to figure out why this is and wanted to ask here if this is some byproduct of an intentional feature, or if I found a bug. Thank you for your time.This is wholey unrelated, but I also have set the
COMMAND_NOT_FOUND
handler to print an insult when a command is not found.It works, but I want to disable the standard
yash: no such command
output. Is there a way to do this?Beta Was this translation helpful? Give feedback.
All reactions