aboutsummaryrefslogtreecommitdiff
path: root/zsh/zshrc.d/prompt.zsh
Commit message (Collapse)AuthorAgeFilesLines
* Clarify control flow in shell scriptsTom Ryder2018-12-311-13/+26
|
* Escape % signs in prompt command outputTom Ryder2017-07-051-4/+10
| | | | | | | | | | 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.
* Remove user@ prefix from promptTom Ryder2017-06-191-2/+2
|
* Allow setting a prompt mode for the shellTom Ryder2017-06-161-2/+2
|
* Extend "fallback" prompt a bitTom Ryder2017-01-271-1/+4
| | | | Include username/hostname if no SSH variables
* Show prompt prefix if a shell is exoticTom Ryder2017-01-251-0/+6
| | | | | | | 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.
* Be more specific in ref name trimmingTom Ryder2017-01-251-1/+1
| | | | | e.g. for a namespaced branch "foo/bar/bar", don't strip the leading part off
* Remove SHLVL nested shell feature for nowTom Ryder2017-01-241-6/+0
| | | | | Causes a bit too much curliness in configuration; may need a more comprehensive approach.
* Tell ShellCheck to ignore an errorTom Ryder2016-12-271-0/+1
| | | | | ret actually is assigned, just not in any place ShellCheck could reasonably be expected to find
* Realised easy win avoiding subshellsTom Ryder2016-12-271-11/+2
| | | | And also the PROMPT_RETURN fudge in Bash/Zsh
* Attempt a much saner approach to managing SHLVLTom Ryder2016-12-191-3/+2
|
* Color Zsh prompt distinctivelyTom Ryder2016-12-171-1/+1
|
* Port prompt SHLVL behaviour to zshTom Ryder2016-12-091-0/+7
|
* Correct check of --is-work-tree testTom Ryder2016-10-151-1/+1
|
* Fork bash prompt changes to zshTom Ryder2016-09-201-63/+66
|
* Fix an issue (silencing Git prompt errors)Tom Ryder2016-09-081-1/+1
|
* Restore old code for describing Git prompt commitTom Ryder2016-09-071-1/+2
| | | | | | | | | | | | | | | 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.
* Port Bash prompt improvements to ZshTom Ryder2016-09-011-33/+25
|
* Port Bash prompt to ZshTom Ryder2016-08-271-0/+214
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.