aboutsummaryrefslogtreecommitdiff
path: root/bash
Commit message (Collapse)AuthorAgeFilesLines
* Ignore #emacs_backup# file patternTom Ryder2019-05-221-0/+3
|
* Explain .bashrc $- 'r' flag problem fullyTom Ryder2019-01-051-2/+3
|
* Trim some trailing whitespaceTom Ryder2018-12-311-1/+1
|
* Two-space sentences in shell commentsTom Ryder2018-12-273-3/+3
|
* Break up some long linesTom Ryder2018-12-262-4/+5
|
* Remove now-unneeded shellcheck disable rulesTom Ryder2018-12-172-2/+0
| | | | | | | These two comments disabling SC2154 were added in commit 5fa3ef7, because ShellCheck 0.50 did not recognise the NAME pointed to by `read -a NAME` commands as an array assignment. This bug has been corrected in ShellCheck 0.60, meaning that these comments are no longer required.
* Correct completion for deep pass(1) directoriesTom Ryder2018-12-081-1/+1
| | | | I misunderstood how globstar worked.
* Fix a local var name in openssl(1ssl) completionTom Ryder2018-12-071-1/+1
|
* Correct a variable ref in openssl(1ssl) completionTom Ryder2018-12-071-1/+1
|
* Disable shellcheck rules for missed definitionTom Ryder2018-12-072-2/+2
| | | | These two arrays are both defined by `read -a`.
* Add filenames treatment to mex(1df) completionTom Ryder2018-12-071-1/+1
|
* Remove unneeded declarationTom Ryder2018-12-071-1/+0
|
* Refactor some completions to avoid loopsTom Ryder2018-12-073-50/+33
|
* Remove unneeded stdout redirectTom Ryder2018-12-061-1/+1
| | | | | | With -q, the `shopt` builtin shouldn't print anything to stdout; we only need to block stderr for its not being found or the relevant option not existing.
* Remove unneeded semicolon from sh "for VAR ; do"Tom Ryder2018-12-062-2/+2
| | | | | It turns out the semicolon belongs to the "in" syntax, and is optional without it.
* Substitute bad `continue` for `return`Tom Ryder2018-12-061-1/+1
|
* Add actual completion matching to git completionTom Ryder2018-12-061-2/+8
| | | | Doi.
* Apply much simpler completion to GitTom Ryder2018-12-061-0/+35
| | | | | | Use CTRL-X, B to complete branch names, and CTRL-X, T to complete tag names. It's too complicated to do it contextually, and it's all I really wanted anyway.
* Refactor bd()/sd() completion a lotTom Ryder2018-12-062-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) completeTom Ryder2018-12-021-2/+2
|
* Make bd() and sd() match quoted and unquoted wordsTom Ryder2018-12-022-13/+31
| | | | | I suspect there's a more correct way to do this, but it's working well for the moment.
* Remove unneeded bracesTom Ryder2018-12-021-1/+1
|
* Use variable for node count, not expansionTom Ryder2018-12-021-1/+1
| | | | Cheaper (I think).
* Use simple loop rather than glob tricks in keepTom Ryder2018-12-021-6/+6
|
* Move error increment to outside of if blockTom Ryder2018-12-021-7/+5
|
* Add missing source of helper func to man completeTom Ryder2018-12-021-0/+5
|
* Remove unneeded local varTom Ryder2018-12-021-1/+1
|
* Trim some trailing whitespaceTom Ryder2018-12-021-1/+1
|
* Correct manpath(1) command in man completionTom Ryder2018-12-021-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 completionTom Ryder2018-12-021-3/+3
|
* Update glob settings for manual page completionTom Ryder2018-12-021-12/+4
|
* Make `sec` a local var in man page completionTom Ryder2018-12-021-0/+1
|
* Remove unneeded `local` declarationTom Ryder2018-12-021-1/+0
|
* Reorder pattern filters for Makefile linesTom Ryder2018-12-021-2/+2
|
* Add some comments to keep() completionTom Ryder2018-12-021-0/+4
|
* Correct find(1) completion to subshell exitTom Ryder2018-12-021-1/+1
|
* Correct completion quoting for eds(1df)Tom Ryder2018-12-021-2/+2
|
* Overhaul Bash completion scriptsTom Ryder2018-12-0217-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 dirnamesTom Ryder2018-12-021-35/+2
| | | | This was really overdoing it.
* Apply syntax fixes to last _text_filenames specsTom Ryder2018-12-024-4/+8
|
* Rearrange _text_filenames completion a littleTom Ryder2018-12-021-12/+14
| | | | Use an integer index for adding values.
* Remove prompt() completionTom Ryder2018-12-021-2/+0
| | | | This is just overkill in retrospect.
* Throw away chgrp completionTom Ryder2018-12-021-14/+0
| | | | I almost never run this as my own user.
* Throw away Git Bash completionTom Ryder2018-12-021-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) completionTom Ryder2018-12-021-42/+0
| | | | It would be better to refactor this as just listing databases.
* Use consistent temp names for shell subfile varsTom Ryder2018-12-022-11/+29
|
* Overhaul pass(1) completionTom Ryder2018-12-021-23/+23
| | | | Remove Bash 4.0 requirement by using globstar dynamically if found.
* Adjust syntax of two more completion loadsTom Ryder2018-12-022-2/+4
| | | | These were missed for 65e47bf, somehow.
* Remove ftp(1) completionTom Ryder2018-12-021-33/+0
| | | | I don't remember the last time I used a .netrc file.
* Remove `kill` completionTom Ryder2018-12-012-17/+2
| | | | Completing PIDs is stupid, in retrospect.