Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | ||||
* | Remove square brackets around prompt | Tom Ryder | 2016-08-15 | 1 | -1/+1 |
| | | | | Just noise | ||||
* | Quote a PS1 character to appease shellcheck | Tom Ryder | 2016-08-14 | 1 | -1/+1 |
| | |||||
* | Two extra comments | Tom Ryder | 2016-08-14 | 1 | -0/+2 |
| | |||||
* | Rearrange prompt variable assignments a bit | Tom Ryder | 2016-08-14 | 1 | -10/+12 |
| | |||||
* | Use --quiet flag for prompt git-rev-parse(1) call | Tom Ryder | 2016-08-14 | 1 | -1/+1 |
| | |||||
* | Use porcelain commands for Git prompt | Tom Ryder | 2016-08-13 | 1 | -27/+9 |
| | | | | | | | | | | | | Checking the output of `git status -z` works, but to be correctly handled requires using a null delimiter for read. Because I want to port this to OpenBSD pdksh (which doesn't have the -d option for read), this seems to be a workable alternative. It also enables me to remove the process substitution (another thing pdksh doesn't support), and the array of flags. I haven't yet tested this for speed. | ||||
* | Remove Mercurial support from Bash prompt | Tom Ryder | 2016-08-10 | 1 | -37/+0 |
| | | | | | | Since Vim and Fanboy's list both moved to Git, I have no reason to use it anymore. Also added a note explaining why I've left the SVN stuff in there (I don't like SVN, but I do need to use it for work) | ||||
* | Move bash completion setup into separate dir | Tom Ryder | 2016-07-30 | 1 | -3/+0 |
| | |||||
* | Quote expansions within parameter expansions | Tom Ryder | 2016-07-15 | 1 | -1/+1 |
| | | | | | | I made the incorrect assumption that it was safe not to do this; expansions that include glob characters, for example, can cause problems. | ||||
* | Terser `read -rd ''` idiom | Tom Ryder | 2016-07-15 | 1 | -2/+2 |
| | |||||
* | Remove unneeded linebreak backslashes | Tom Ryder | 2016-06-21 | 1 | -8/+8 |
| | | | | | | | | | | | Handy command: $ find bin sh bash -type f -exec grep \ -e '|| \\$' \ -e '&& \\$' \ -e '^\s*||' \ -e '^\s*&&' \ {} + | ||||
* | Switch from prompt image to plain text | Tom Ryder | 2016-06-09 | 1 | -1/+1 |
| | | | | More compatible, want to display this in Cgit as well | ||||
* | Move PROMPT_RETURN declaration to top of func | Tom Ryder | 2016-05-04 | 1 | -1/+4 |
| | |||||
* | Add means to change prompt color | Tom Ryder | 2016-04-23 | 1 | -3/+8 |
| | |||||
* | Remove blank lines at end of files | Tom Ryder | 2016-03-28 | 1 | -1/+0 |
| | |||||
* | Remove unneeded read junk var | Tom Ryder | 2016-03-15 | 1 | -1/+1 |
| | |||||
* | Protect PS1 variable expansions | Tom Ryder | 2016-03-15 | 1 | -2/+2 |
| | |||||
* | Only show git VCS stuff by default | Tom Ryder | 2016-03-14 | 1 | -1/+6 |
| | | | | | | | | On my work machines, I'll make a file ~/.bashrc.d/prompt.bash which includes a PROMPT_VCS=(git svn) line. I don't really use Mercurial at all, now that the Vim sources have moved to Git; certainly not enough to check for it on every prompt load ... | ||||
* | Unsigned integers for printf | Tom Ryder | 2016-02-27 | 1 | -1/+1 |
| | |||||
* | Add missing case terminator | Tom Ryder | 2015-12-24 | 1 | -0/+2 |
| | |||||
* | Switch to a faster method of array appending | Tom Ryder | 2015-12-14 | 1 | -8/+8 |
| | | | | | Does away with the nasty hack around man page discovery, and still compatible with Bash 2.05a | ||||
* | Remove overkill chopping on BASH_VERSINFO[0] | Tom Ryder | 2015-08-22 | 1 | -1/+1 |
| | | | | Pointed out by Amy Grace. | ||||
* | Allow PROMPT_PREFIX and PROMPT_SUFFIX | Tom Ryder | 2015-06-09 | 1 | -2/+11 |
| | | | | Also break the prompt definition into multiple lines for readability | ||||
* | Consistent alphabetical order for read opts | Tom Ryder | 2015-06-07 | 1 | -2/+2 |
| |