Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refactor bd()/sd() completion a lot | Tom Ryder | 2018-12-06 | 2 | -31/+66 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Avoid very many forks; and work around Bash 3.0 bugs with array behaviour: bash-3.0$ nodes=(a b c) bash-3.0$ printf '%s\n' "${nodes[@]:1}" b c bash-3.0$ nodes=(a b) bash-3.0$ printf '%s\n' "${nodes[@]:1}" bash-3.0 Compare: bash-5.0$ nodes=(a b c) bash-5.0$ printf '%s\n' "${nodes[@]:1}" b c bash-5.0$ nodes=(a b) bash-5.0$ printf '%s\n' "${nodes[@]:1}" b bash-5.0$ | ||||
* | Use native filename quoting for td(1df) complete | Tom Ryder | 2018-12-02 | 1 | -2/+2 |
| | |||||
* | Make bd() and sd() match quoted and unquoted words | Tom Ryder | 2018-12-02 | 2 | -13/+31 |
| | | | | | I suspect there's a more correct way to do this, but it's working well for the moment. | ||||
* | Remove unneeded braces | Tom Ryder | 2018-12-02 | 1 | -1/+1 |
| | |||||
* | Use variable for node count, not expansion | Tom Ryder | 2018-12-02 | 1 | -1/+1 |
| | | | | Cheaper (I think). | ||||
* | Add missing source of helper func to man complete | Tom Ryder | 2018-12-02 | 1 | -0/+5 |
| | |||||
* | Remove unneeded local var | Tom Ryder | 2018-12-02 | 1 | -1/+1 |
| | |||||
* | Trim some trailing whitespace | Tom Ryder | 2018-12-02 | 1 | -1/+1 |
| | |||||
* | Correct manpath(1) command in man completion | Tom Ryder | 2018-12-02 | 1 | -1/+1 |
| | | | | | I added the "a" as a quick-and-dirty test for the fallback condition below it, and accidentally committed it in 7d6fe8b. | ||||
* | Adjust quoting and termination for man completion | Tom Ryder | 2018-12-02 | 1 | -3/+3 |
| | |||||
* | Update glob settings for manual page completion | Tom Ryder | 2018-12-02 | 1 | -12/+4 |
| | |||||
* | Make `sec` a local var in man page completion | Tom Ryder | 2018-12-02 | 1 | -0/+1 |
| | |||||
* | Remove unneeded `local` declaration | Tom Ryder | 2018-12-02 | 1 | -1/+0 |
| | |||||
* | Reorder pattern filters for Makefile lines | Tom Ryder | 2018-12-02 | 1 | -2/+2 |
| | |||||
* | Add some comments to keep() completion | Tom Ryder | 2018-12-02 | 1 | -0/+4 |
| | |||||
* | Correct find(1) completion to subshell exit | Tom Ryder | 2018-12-02 | 1 | -1/+1 |
| | |||||
* | Correct completion quoting for eds(1df) | Tom Ryder | 2018-12-02 | 1 | -2/+2 |
| | |||||
* | Overhaul Bash completion scripts | Tom Ryder | 2018-12-02 | 17 | -430/+437 |
| | | | | | | | | | | | Some general changes: * Apply case sensitivity switching in more contexts, using a dynamically loaded helper function * Use array counters for appending to COMPREPLY where possible * Lots more short-circuiting to limit structural depth These changes are expansive and there will definitely be bugs. | ||||
* | Reduce ud() completion to just dirnames | Tom Ryder | 2018-12-02 | 1 | -35/+2 |
| | | | | This was really overdoing it. | ||||
* | Apply syntax fixes to last _text_filenames specs | Tom Ryder | 2018-12-02 | 4 | -4/+8 |
| | |||||
* | Rearrange _text_filenames completion a little | Tom Ryder | 2018-12-02 | 1 | -12/+14 |
| | | | | Use an integer index for adding values. | ||||
* | Remove prompt() completion | Tom Ryder | 2018-12-02 | 1 | -2/+0 |
| | | | | This is just overkill in retrospect. | ||||
* | Throw away chgrp completion | Tom Ryder | 2018-12-02 | 1 | -14/+0 |
| | | | | I almost never run this as my own user. | ||||
* | Throw away Git Bash completion | Tom Ryder | 2018-12-02 | 1 | -198/+0 |
| | | | | | | Too complicated, for too little benefit. What would probably be better would be bindings in Bash specifically for completing Git remotes, tags, etc. | ||||
* | Remove mysql(1) completion | Tom Ryder | 2018-12-02 | 1 | -42/+0 |
| | | | | It would be better to refactor this as just listing databases. | ||||
* | Overhaul pass(1) completion | Tom Ryder | 2018-12-02 | 1 | -23/+23 |
| | | | | Remove Bash 4.0 requirement by using globstar dynamically if found. | ||||
* | Adjust syntax of two more completion loads | Tom Ryder | 2018-12-02 | 2 | -2/+4 |
| | | | | These were missed for 65e47bf, somehow. | ||||
* | Remove ftp(1) completion | Tom Ryder | 2018-12-02 | 1 | -33/+0 |
| | | | | I don't remember the last time I used a .netrc file. | ||||
* | Remove `kill` completion | Tom Ryder | 2018-12-01 | 1 | -16/+0 |
| | | | | Completing PIDs is stupid, in retrospect. | ||||
* | Use the positional parameter aliases for words | Tom Ryder | 2018-12-01 | 20 | -47/+43 |
| | | | | | The current word is available in $2, and the previous word in $3. That's easier (and maybe a bit less expensive) to dig out, so let's use it. | ||||
* | Overhaul bd() completion again | Tom Ryder | 2018-12-01 | 1 | -16/+43 |
| | | | | | | I forgot that the second positional parameter $2 to these completion functions is the word currently being completed. That's going to make things a bit less verbose. | ||||
* | Remove unneeded -q option to shopt -s commands | Tom Ryder | 2018-12-01 | 2 | -2/+2 |
| | |||||
* | Fix backwards test for gpg(1) completion | Tom Ryder | 2018-12-01 | 1 | -1/+2 |
| | |||||
* | Overhaul and expand abook address Bash completion | Tom Ryder | 2018-12-01 | 1 | -7/+30 |
| | |||||
* | Restore correct completion function for mutt(1) | Tom Ryder | 2018-12-01 | 1 | -2/+2 |
| | | | | This was mistakenly changed to _text_filenames in 65e47bf. | ||||
* | Use simpler keyword complete for `path` subcommand | Tom Ryder | 2018-12-01 | 1 | -3/+11 |
| | |||||
* | Break up a couple of long lines | Tom Ryder | 2018-12-01 | 2 | -2/+5 |
| | |||||
* | Remove unneeded local array declaration | Tom Ryder | 2018-12-01 | 1 | -1/+0 |
| | |||||
* | Remove unneeded empty result short circuit | Tom Ryder | 2018-12-01 | 1 | -3/+0 |
| | |||||
* | Remove redundant error code in short circuits | Tom Ryder | 2018-12-01 | 8 | -10/+10 |
| | |||||
* | Adjust loop short circuits and pattern matches | Tom Ryder | 2018-12-01 | 10 | -20/+45 |
| | |||||
* | Remove unneeded quoting in case statement | Tom Ryder | 2018-12-01 | 1 | -1/+1 |
| | |||||
* | Remove needless line breaks from git completion | Tom Ryder | 2018-12-01 | 1 | -6/+2 |
| | |||||
* | Use inverting exclam mark outside conditional | Tom Ryder | 2018-12-01 | 1 | -4/+4 |
| | |||||
* | Remove stray comment no longer applicable | Tom Ryder | 2018-12-01 | 1 | -2/+0 |
| | |||||
* | Use array+=() syntax in two Bash completion files | Tom Ryder | 2018-12-01 | 2 | -2/+2 |
| | | | | | Since these only load with Bash >=4.0, we may as well use the nicer method of adding to arrays. | ||||
* | Remove null-result guard from completion gens | Tom Ryder | 2018-12-01 | 7 | -56/+14 |
| | | | | I don't believe these are needed anymore, or possibly ever were. | ||||
* | Use simpler method of no case completion check | Tom Ryder | 2018-12-01 | 7 | -77/+42 |
| | |||||
* | Overhaul `keep` completion | Tom Ryder | 2018-12-01 | 1 | -58/+43 |
| | |||||
* | Simplify an array operation in `bd` completion | Tom Ryder | 2018-12-01 | 1 | -1/+1 |
| |