| Age | Commit message (Collapse) | Author |
|
|
|
Because I'm a Unicode hipster.
Also move the "dumb" check below function definitions, so that maybe
someday I can try to play with those functions in shell-mode.
|
|
|
|
Otherwise Emacs picks it up when started from a terminal, defeating my
attempt to shield M-x shell from my weird-ass prompt.
|
|
|
|
I've seen the prohibited sign elsewhere before (on Github IIRC),
I find it neat.
Using the box drawing rather than the long dash ensures the line looks
continuous even in TTYs.
|
|
Simplifies the code somewhat; less arguments to pass around.
|
|
- no newline: simply append a visible /
- error code: move to first line and make rule red
|
|
User/host/working-directory/Git status go on the first line; the
"prompt" line only contains the prompt symbol and the previous
command's error code.
Also fill the rest of the line when a command does not end with
a newline.
|
|
- remove speculative parentheses
- sort table by code
|
|
To reproduce the issue:
$ echo -e '\E[?7l'
(cf. console_codes(4))
|
|
TRAMP fails to connect to remote hosts that set this prompt.
|
|
bash(1) already mentions _profile, _login, _logout and _history.
.bashrc adds .bash_aliases (although .bashrc itself is an exception).
|
|
Also remove "white" since it's the default color.
|
|
|
|
- stop leaking variables
- remove usnused array entry
|
|
|
|
|
|
- every function should give explicit names to its arguments, so they
might as well start with that;
- this function's goal is to build PS1, so BUILDING_PS1=t should appear
reasonably early to have some symmetry with unset BUILDING_PS1;
- PS1 is the main output of this function, so its initialization should
appear relatively early as well.
… I'm trying to justify shuffling some assignments around in a commit
message that no one will ever read. WHAT AM I DOING WITH MY LIFE.
|
|
|
|
Maybe a better option would be to display some bright red markers and
display the full rule on a new line.
🤷
|
|
|
|
Document where those are coming from.
|
|
"\E" means "the escape character", and "\a" means "bell".
References:
bash(1)
console_codes(4)
|
|
|
|
This will show the hostname when logged in over SSH.
|
|
|
|
|
|
|
|
|
|
Someday this is going to bite me in the ass. Right now though, I can't
come up with a reason not to do this.
Inspiration: test(1)
-n STRING
the length of STRING is nonzero
STRING equivalent to -n STRING
|
|
TODO: measure whether this actually changes anything.
|
|
|
|
|