Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Use shorter "or" syntax within [[ ]] | Tom Ryder | 2016-08-31 | 1 | -1/+1 | |
| | ||||||
* | Add mapfile to completions (conditional on vers) | Tom Ryder | 2016-08-29 | 1 | -0/+3 | |
| | ||||||
* | Move COMP_WORDBREAKS tweaks to completion subfile | Tom Ryder | 2016-08-29 | 1 | -0/+5 | |
| | ||||||
* | 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 | 3 | -12/+12 | |
| | ||||||
* | 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 | 3 | -43/+22 | |
| | | | | 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 dynamic completion if available | Tom Ryder | 2016-08-21 | 1 | -0/+57 | |
| | ||||||
* | 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. | |||||
* | Port path() to POSIX sh | Tom Ryder | 2016-08-20 | 1 | -180/+0 | |
| | | | | That was a lot easier than I thought | |||||
* | Port fnl() to POSIX sh script fnl(1) | Tom Ryder | 2016-08-20 | 1 | -41/+0 | |
| | | | | | No real compelling reason to make it a shell function in the first place. | |||||
* | Remove readv() and readz() | Tom Ryder | 2016-08-20 | 2 | -29/+0 | |
| | | | | Neither are terribly useful | |||||
* | Port vr(1) to POSIX sh | Tom Ryder | 2016-08-20 | 1 | -59/+0 | |
| | ||||||
* | Port lhn() to POSIX sh | Tom Ryder | 2016-08-20 | 1 | -7/+0 | |
| | ||||||
* | Port sd() to POSIX sh | Tom Ryder | 2016-08-20 | 1 | -109/+0 | |
| | ||||||
* | Port pd() to POSIX sh | Tom Ryder | 2016-08-20 | 1 | -53/+0 | |
| | ||||||
* | Port ud() to POSIX sh | Tom Ryder | 2016-08-20 | 1 | -50/+0 | |
| | ||||||
* | Port bd() to POSIX sh | Tom Ryder | 2016-08-20 | 1 | -78/+0 | |
| | ||||||
* | Change cd() into POSIX shell script | Tom Ryder | 2016-08-19 | 1 | -32/+0 | |
| | ||||||
* | Add lhn() | Tom Ryder | 2016-08-18 | 1 | -0/+7 | |
| | ||||||
* | Don't do Git prompt work if not in working tree | Tom Ryder | 2016-08-18 | 1 | -0/+7 | |
| | ||||||
* | Port grep() and ls() to POSIX sh | Tom Ryder | 2016-08-18 | 2 | -55/+0 | |
| | | | | | | Check capabilities of wrapped programs at runtime, not declaration time. Also do away with the silly GREP_COLORS and GREP_OPTS variables. Considering doing the same with LS_COLORS. | |||||
* | Move simple Bash/pdksh functions into POSIX sh | Tom Ryder | 2016-08-17 | 16 | -171/+0 | |
| | | | | | | | Have only translated the scripts that translate readily into POSIX sh for now. More complex stuff like that bd/pd/sd/ud navigation for Bash doesn't port as easily, mostly because there isn't an analogue for the "local" keyword in POSIX. | |||||
* | Keep grep(1) option metadata in cache | Tom Ryder | 2016-08-15 | 1 | -9/+11 | |
| | | | | | | | | | It's stupid to run `grep --help` once per shell (twice for login shells!) when it's so unlikely to change, and way faster to check for the presence or absence of hint files rather than pattern-match the output with the shell. ls(1) will get the same treatment in a minute. | |||||
* | 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. | |||||
* | Fix comment typo | Tom Ryder | 2016-08-11 | 1 | -1/+1 | |
| | ||||||
* | Test bc(1) for non-POSIX -q | Tom Ryder | 2016-08-11 | 1 | -0/+3 | |
| | ||||||
* | Add explicit -n to hgrep() $HISTFILE check | Tom Ryder | 2016-08-10 | 1 | -1/+1 | |
| | ||||||
* | 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) | |||||
* | Switch fnl()/scr() to use mktd(1) | Tom Ryder | 2016-08-04 | 2 | -6/+3 | |
| |