Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Port path() to POSIX sh | Tom Ryder | 2016-08-20 | 1 | -180/+0 |
| | | | | That was a lot easier than I thought | ||||
* | Move bash completion setup into separate dir | Tom Ryder | 2016-07-30 | 1 | -61/+0 |
| | |||||
* | Terser `read -rd ''` idiom | Tom Ryder | 2016-07-15 | 1 | -1/+1 |
| | |||||
* | Remove unneeded linebreak backslashes | Tom Ryder | 2016-06-21 | 1 | -2/+1 |
| | | | | | | | | | | | Handy command: $ find bin sh bash -type f -exec grep \ -e '|| \\$' \ -e '&& \\$' \ -e '^\s*||' \ -e '^\s*&&' \ {} + | ||||
* | Remove blank lines at end of files | Tom Ryder | 2016-03-28 | 1 | -1/+0 |
| | |||||
* | Avoid calling cat(1) by using builtins | Tom Ryder | 2015-12-18 | 1 | -1/+3 |
| | |||||
* | Flatten _path completion spec a bit | Tom Ryder | 2015-12-15 | 1 | -54/+51 |
| | |||||
* | Localise a stray variable | Tom Ryder | 2015-12-14 | 1 | -0/+1 |
| | |||||
* | Switch to a faster method of array appending | Tom Ryder | 2015-12-14 | 1 | -13/+9 |
| | | | | | Does away with the nasty hack around man page discovery, and still compatible with Bash 2.05a | ||||
* | Change COMP_REPLY to intended COMP_WORDS | Tom Ryder | 2015-10-21 | 1 | -1/+1 |
| | |||||
* | When expanding with globbing, use prefix | Tom Ryder | 2015-10-21 | 1 | -3/+1 |
| | | | | | Rather than generating all possible completions and then filtering them down, use the completing word as a prefix for the glob | ||||
* | Switch compopt back out | Tom Ryder | 2015-10-21 | 1 | -3/+6 |
| | | | | | Damn, looks like 2.05a doesn't have compopt; put it back into the complete line | ||||
* | Tidy up completion considerably; no more compgen | Tom Ryder | 2015-10-21 | 1 | -80/+97 |
| | | | | | | | | | | | | | | * Remove all instances of compgen; for filename completion it's quite broken as it relies on implicit wordsplitting in array context, and doesn't have an option to print with a null delimiter; replaced with manual for/while loops instead * Add IFS= to while/read loops over filenames * Use "dirname/s" instead of "dir/s" variables to avoid keyword collisions and for clarity * Remove some unnecessary variables * Use shorter syntax for loop exit conditions * Move completion options into functions where applicable rather than having them on the completion definition itself | ||||
* | Handle spaces correctly in completions | Tom Ryder | 2015-10-20 | 1 | -0/+2 |
| | | | | | | This is technically still wrong; COMPREPLY needs to be specified with null-delimited IFS, as done in the pass() function. This will do for now. | ||||
* | Put path func help into heredoc | Tom Ryder | 2015-09-08 | 1 | -20/+22 |
| | | | | A little more manageable | ||||
* | More intelligent trailing-slash filtering | Tom Ryder | 2015-08-05 | 1 | -7/+10 |
| | |||||
* | Remove unneeded 'in "$@"' for argument iteration | Tom Ryder | 2015-06-26 | 1 | -1/+1 |
| | | | | for defaults to iterating over the arguments | ||||
* | Improve directory completion for $PATH | Tom Ryder | 2015-06-15 | 1 | -0/+2 |
| | |||||
* | Remove unneeded quotes | Tom Ryder | 2015-06-12 | 1 | -4/+4 |
| | |||||
* | Separate declaration from assignment | Tom Ryder | 2015-06-06 | 1 | -8/+14 |
| | |||||
* | Missing word as possible completion | Tom Ryder | 2015-06-05 | 1 | -1/+1 |
| | |||||
* | Thorough completion for path | Tom Ryder | 2015-06-05 | 1 | -1/+45 |
| | |||||
* | Don't print empty line for empty PATH | Tom Ryder | 2015-06-05 | 1 | -1/+3 |
| | |||||
* | Don't allow dirs with : in name | Tom Ryder | 2015-06-05 | 1 | -0/+10 |
| | | | | | | | <http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08_03> "Since <colon> is a separator in this context, directory names that might be used in PATH should not include a <colon> character." | ||||
* | Remove redundant arg check | Tom Ryder | 2015-06-05 | 1 | -2/+2 |
| | |||||
* | Couple of minor tweaks to path() | Tom Ryder | 2015-06-05 | 1 | -1/+1 |
| | |||||
* | Add path() function | Tom Ryder | 2015-06-05 | 1 | -0/+158 |