| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
They're nicer to read this way.
|
|
|
|
|
|
|
|
|
|
| |
The Zsh analogue of fd2b6fd. This one matters a bit more, as e.g.
"%test" is a legal Git branch name.
A generic fix for this for Korn shell will be tough, as some of them
seem to use backslash escape sequences and others don't. None of the
prompt commands *should* emit backslashes, and it doesn't allow remote
execution, so I might just leave that.
|
| |
|
| |
|
|
|
|
| |
Include username/hostname if no SSH variables
|
|
|
|
|
|
|
| |
That is, include e.g. "ksh:" as a prefix to the prompt if the user
appears to have Bash or Zsh (or anything else) as their login shell.
This is probably imperfect, but it's a start.
|
|
|
|
|
| |
e.g. for a namespaced branch "foo/bar/bar", don't strip the leading part
off
|
|
|
|
|
| |
Causes a bit too much curliness in configuration; may need a more
comprehensive approach.
|
| |
|
|
|
|
|
| |
ret actually is assigned, just not in any place ShellCheck could
reasonably be expected to find
|
|
|
|
| |
And also the PROMPT_RETURN fudge in Bash/Zsh
|
|
|
|
| |
*(N), *.zsh(N) is such a weird syntax
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I'm really confused. I could have sworn this was working correctly (i.e.
the --always option spat out a short reference to the commit as a
fallback), but I must have been wrong. Maybe I hadn't installed the
appropriate file when I was testing it.
At first I thought this was a bug introduced in Git 2.10, but the
short-circuit disregarding --always if --exact-match or --candidates=0
is set seems to have been in the `describe` builtin for ages. I must
have just tested poorly; I can't see any other explanation in the
source.
No matter; this isn't much slower.
|
| |
|
|
Somewhat naïvely; just quick searches of `man zshall`. I'm sure some of
the stuff I removed has analogous features or that they can be
implemented.
|