You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After realizing I was in the process of rewriting something similar to powerline in bash, I figured I would give this project a try again.
One of the things my fancy bash prompt does (thanks to help from some friends ;), is to display properly status code issued from signals received from the shell. For example:
First prompt exited cleanly: no error. Status code 1 get displayed as is, but the sleep call (which i interrupted in another window), gets shown with the proper signal (instead of, say, "status code 143").
forgive the private unicode... But basically, what would be nice would be to parse status codes above 128 for the signal value. here's the bash we're using for that:
It's a nasty piece of work with arrays and everything, but it works fairly well. It does, incidentally, make control-c look much better than in powerline:
After realizing I was in the process of rewriting something similar to powerline in bash, I figured I would give this project a try again.
One of the things my fancy bash prompt does (thanks to help from some friends ;), is to display properly status code issued from signals received from the shell. For example:
First prompt exited cleanly: no error. Status code
1
get displayed as is, but thesleep
call (which i interrupted in another window), gets shown with the proper signal (instead of, say, "status code 143").This is how the above looks in powerline:
forgive the private unicode... But basically, what would be nice would be to parse status codes above
128
for the signal value. here's the bash we're using for that:It's a nasty piece of work with arrays and everything, but it works fairly well. It does, incidentally, make control-c look much better than in powerline:
In powerline:
Thanks!
The text was updated successfully, but these errors were encountered: