Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use ||/&& short-circuiting only for flow control | Tom Ryder | 2018-11-30 | 1 | -19/+39 |
| | | | | | If we're doing something besides return/exit, it should be a proper `if` condition so that the semantics are clearer. | ||||
* | Escape backslashes in command prompt output | Tom Ryder | 2017-07-05 | 1 | -4/+10 |
| | | | | | | To stop them getting interpreted as \h, \w etc. None of these *should* be able to emit backslashes (it's an illegal branch name), but best to be thorough. | ||||
* | Remove user@ prefix from prompt | Tom Ryder | 2017-06-19 | 1 | -2/+2 |
| | |||||
* | Allow setting a prompt mode for the shell | Tom Ryder | 2017-06-16 | 1 | -2/+2 |
| | |||||
* | Extend "fallback" prompt a bit | Tom Ryder | 2017-01-27 | 1 | -1/+4 |
| | | | | Include username/hostname if no SSH variables | ||||
* | Show prompt prefix if a shell is exotic | Tom Ryder | 2017-01-25 | 1 | -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 trimming | Tom Ryder | 2017-01-25 | 1 | -1/+1 |
| | | | | | e.g. for a namespaced branch "foo/bar/bar", don't strip the leading part off | ||||
* | Remove SHLVL nested shell feature for now | Tom Ryder | 2017-01-24 | 1 | -6/+0 |
| | | | | | Causes a bit too much curliness in configuration; may need a more comprehensive approach. | ||||
* | Add workaround to what looks like a bug to me | Tom Ryder | 2016-12-27 | 1 | -0/+5 |
| | |||||
* | Tell ShellCheck to ignore an error | Tom Ryder | 2016-12-27 | 1 | -0/+1 |
| | | | | | ret actually is assigned, just not in any place ShellCheck could reasonably be expected to find | ||||
* | Realised easy win avoiding subshells | Tom Ryder | 2016-12-27 | 1 | -7/+4 |
| | | | | And also the PROMPT_RETURN fudge in Bash/Zsh | ||||
* | Use clearer logic for prompt color setting | Tom Ryder | 2016-12-21 | 1 | -8/+7 |
| | |||||
* | Attempt a much saner approach to managing SHLVL | Tom Ryder | 2016-12-19 | 1 | -3/+2 |
| | |||||
* | Handle tmux sessions showing SHLVL properly | Tom Ryder | 2016-11-30 | 1 | -3/+3 |
| | |||||
* | Only add > starting from SHLVL=2 | Tom Ryder | 2016-11-30 | 1 | -1/+1 |
| | |||||
* | Add > signs to show shell indentation level | Tom Ryder | 2016-11-30 | 1 | -0/+7 |
| | | | | | This needs extension to handle tmux sessions; it should be something like SHLVL - TMUX_SHLVL, which I'm not quite sure how to implement yet. | ||||
* | Correct check of --is-work-tree test | Tom Ryder | 2016-10-15 | 1 | -1/+1 |
| | |||||
* | Add some var quoting within param expansion | Tom Ryder | 2016-09-20 | 1 | -6/+6 |
| | |||||
* | Block output/error from prompt tput(1)/git(1) | Tom Ryder | 2016-09-20 | 1 | -102/+102 |
| | | | | Should make things just a little bit faster | ||||
* | Fix an issue (silencing Git prompt errors) | Tom Ryder | 2016-09-08 | 1 | -1/+1 |
| | |||||
* | Restore old code for describing Git prompt commit | Tom Ryder | 2016-09-07 | 1 | -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. | ||||
* | Test number of colors properly for prompt | Tom Ryder | 2016-09-03 | 1 | -31/+26 |
| | |||||
* | Restore git symbolic-ref as first attempt | Tom Ryder | 2016-08-31 | 1 | -2/+4 |
| | | | | | Otherwise if two branches point to the same commit, you can't be sure which one will show up. | ||||
* | Efficiency tweaks for Subversion prompt | Tom Ryder | 2016-08-31 | 1 | -17/+11 |
| | |||||
* | Stop loop when we have needed svn info vars | Tom Ryder | 2016-08-31 | 1 | -3/+2 |
| | |||||
* | Remove unneeded fallback for $name | Tom Ryder | 2016-08-31 | 1 | -2/+1 |
| | | | | We've already bailed out by this point if we couldn't get one | ||||
* | Move git index update higher up | Tom Ryder | 2016-08-31 | 1 | -3/+3 |
| | |||||
* | Use simpler method to find branch name | Tom Ryder | 2016-08-31 | 1 | -11/+9 |
| | | | | | Only one call to git(1), too; seems to work at least as far back as Git v1.5.6.5 | ||||
* | Use shorter "or" syntax within [[ ]] | Tom Ryder | 2016-08-31 | 1 | -1/+1 |
| | |||||
* | Use -n test and temp var for working tree test | Tom Ryder | 2016-08-27 | 1 | -2/+3 |
| | |||||
* | Show REBASE,MERGE etc in Git prompt | Tom Ryder | 2016-08-25 | 1 | -2/+16 |
| | | | | | Again pretty much pilfered from the contrib git prompt script in the Git source | ||||
* | Show tag name in Git prompt if commit is tagged | Tom Ryder | 2016-08-25 | 1 | -1/+3 |
| | |||||
* | Refine git prompt commands a bit | Tom Ryder | 2016-08-24 | 1 | -3/+4 |
| | | | | Informed by git-prompt.sh from the Git source distribution | ||||
* | Fully expand FUNCNAME | Tom Ryder | 2016-08-23 | 1 | -2/+2 |
| | |||||
* | Add -r to read to placate shellcheck | Tom Ryder | 2016-08-23 | 1 | -1/+1 |
| | |||||
* | If HEAD not set, suppress error | Tom Ryder | 2016-08-23 | 1 | -1/+1 |
| | |||||
* | Correct test written in previous commit | Tom Ryder | 2016-08-23 | 1 | -1/+2 |
| | |||||
* | Check SSH_CLIENT *and* SSH_CONNECTION for prompt | Tom Ryder | 2016-08-23 | 1 | -1/+1 |
| | |||||
* | Experiment with abbreviated prompt | Tom Ryder | 2016-08-23 | 1 | -2/+5 |
| | | | | And an even more strict tmux environment | ||||
* | Many stylistic fixes/optimisations | Tom Ryder | 2016-08-21 | 1 | -33/+14 |
| | | | | In particular, limit the verbose >=2.05 test to just one file: .bashrc | ||||
* | Force type for Git ahead/behind counts | Tom Ryder | 2016-08-21 | 1 | -4/+6 |
| | |||||
* | Use clearer quoting for status flags | Tom Ryder | 2016-08-21 | 1 | -6/+6 |
| | |||||
* | Target terminfo first, then termcap | Tom Ryder | 2016-08-21 | 1 | -9/+9 |
| | |||||
* | Break up long printf lines | Tom Ryder | 2016-08-21 | 1 | -2/+4 |
| | |||||
* | Slightly quicker git/svn detection | Tom Ryder | 2016-08-21 | 1 | -15/+6 |
| | |||||
* | Add some upstream checking to Git prompt | Tom Ryder | 2016-08-21 | 1 | -3/+19 |
| | | | | Also add some comments to be a bit less cryptic | ||||
* | Use terser prompt status flag checks | Tom Ryder | 2016-08-21 | 1 | -8/+4 |
| | |||||
* | Resolve an issue with incorrect prompt info | Tom Ryder | 2016-08-21 | 1 | -0/+3 |
| | | | | | | | | | | | | | From `man 1 git-config`: > diff.autoRefreshIndex > When using git diff to compare with work tree files, do not > consider stat-only change as changed. Instead, silently run git > update-index --refresh to update the cached stat information for > paths whose contents in the work tree match the contents in the > index. This option defaults to true. Note that this affects only > git diff Porcelain, and not lower level diff commands such as git > diff-files. | ||||
* | Don't do Git prompt work if not in working tree | Tom Ryder | 2016-08-18 | 1 | -0/+7 |
| | |||||
* | Don't use git: prompt prefix if PROMPT_VCS unset | Tom Ryder | 2016-08-15 | 1 | -2/+3 |
| | | | | | All of my personal stuff is in Git, so this is only really applicable at work |