Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use XDG base directories for shell keep() funcs | Tom Ryder | 2020-04-22 | 2 | -3/+3 |
| | |||||
* | Include ~/.bash_profile.d snippets if present | Tom Ryder | 2019-08-16 | 1 | -0/+7 |
| | |||||
* | Prevent me from using `which` | Tom Ryder | 2019-06-10 | 1 | -0/+4 |
| | |||||
* | Ignore #emacs_backup# file pattern | Tom Ryder | 2019-05-22 | 1 | -0/+3 |
| | |||||
* | Explain .bashrc $- 'r' flag problem fully | Tom Ryder | 2019-01-05 | 1 | -2/+3 |
| | |||||
* | Trim some trailing whitespace | Tom Ryder | 2018-12-31 | 1 | -1/+1 |
| | |||||
* | Two-space sentences in shell comments | Tom Ryder | 2018-12-27 | 3 | -3/+3 |
| | |||||
* | Break up some long lines | Tom Ryder | 2018-12-26 | 2 | -4/+5 |
| | |||||
* | Remove now-unneeded shellcheck disable rules | Tom Ryder | 2018-12-17 | 2 | -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) directories | Tom Ryder | 2018-12-08 | 1 | -1/+1 |
| | | | | I misunderstood how globstar worked. | ||||
* | Fix a local var name in openssl(1ssl) completion | Tom Ryder | 2018-12-07 | 1 | -1/+1 |
| | |||||
* | Correct a variable ref in openssl(1ssl) completion | Tom Ryder | 2018-12-07 | 1 | -1/+1 |
| | |||||
* | Disable shellcheck rules for missed definition | Tom Ryder | 2018-12-07 | 2 | -2/+2 |
| | | | | These two arrays are both defined by `read -a`. | ||||
* | Add filenames treatment to mex(1df) completion | Tom Ryder | 2018-12-07 | 1 | -1/+1 |
| | |||||
* | Remove unneeded declaration | Tom Ryder | 2018-12-07 | 1 | -1/+0 |
| | |||||
* | Refactor some completions to avoid loops | Tom Ryder | 2018-12-07 | 3 | -50/+33 |
| | |||||
* | Remove unneeded stdout redirect | Tom Ryder | 2018-12-06 | 1 | -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 Ryder | 2018-12-06 | 2 | -2/+2 |
| | | | | | It turns out the semicolon belongs to the "in" syntax, and is optional without it. | ||||
* | Substitute bad `continue` for `return` | Tom Ryder | 2018-12-06 | 1 | -1/+1 |
| | |||||
* | Add actual completion matching to git completion | Tom Ryder | 2018-12-06 | 1 | -2/+8 |
| | | | | Doi. | ||||
* | Apply much simpler completion to Git | Tom Ryder | 2018-12-06 | 1 | -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 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). | ||||
* | Use simple loop rather than glob tricks in keep | Tom Ryder | 2018-12-02 | 1 | -6/+6 |
| | |||||
* | Move error increment to outside of if block | Tom Ryder | 2018-12-02 | 1 | -7/+5 |
| | |||||
* | 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. | ||||
* | Use consistent temp names for shell subfile vars | Tom Ryder | 2018-12-02 | 2 | -11/+29 |
| | |||||
* | Overhaul pass(1) completion | Tom Ryder | 2018-12-02 | 1 | -23/+23 |
| | | | | Remove Bash 4.0 requirement by using globstar dynamically if found. |