aboutsummaryrefslogtreecommitdiff
path: root/bash
Commit message (Collapse)AuthorAgeFilesLines
* Add SSH host completion for MoshTom Ryder2023-03-111-0/+5
|
* Better way to elide hostname prompt in screen/tmuxTom Ryder2022-08-091-2/+2
|
* Support SSH many-Host lines and config subfilesTom Ryder2022-08-041-12/+17
|
* Bump up shell history limitsTom Ryder2022-05-271-2/+2
| | | | Stuff I want keeps disappearing off the buffer on more active computers.
* Correct prompt status writing broken by preloadTom Ryder2022-04-301-4/+4
|
* Update LD_PRELOAD checks to change dynamicallyTom Ryder2022-03-261-9/+20
|
* Include prompt prefix when using TorsocksTom Ryder2022-03-261-0/+7
|
* Allow dashes in `keep` itemsTom Ryder2021-06-251-2/+2
|
* Make corrections for ShellCheck v0.7.2Tom Ryder2021-05-101-0/+1
|
* Use inline integers rather than bit shiftingTom Ryder2020-11-131-1/+1
| | | | Syntax highlighting doesn't deal with it well
* Use XDG base directories for shell keep() funcsTom Ryder2020-04-222-3/+3
|
* Include ~/.bash_profile.d snippets if presentTom Ryder2019-08-161-0/+7
|
* Prevent me from using `which`Tom Ryder2019-06-101-0/+4
|
* 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
|