aboutsummaryrefslogtreecommitdiff
path: root/bash
Commit message (Collapse)AuthorAgeFilesLines
* Overhaul and expand abook address Bash completionTom Ryder2018-12-011-7/+30
|
* Restore correct completion function for mutt(1)Tom Ryder2018-12-011-2/+2
| | | | This was mistakenly changed to _text_filenames in 65e47bf.
* Use simpler keyword complete for `path` subcommandTom Ryder2018-12-011-3/+11
|
* Break up a couple of long linesTom Ryder2018-12-012-2/+5
|
* Remove unneeded local array declarationTom Ryder2018-12-011-1/+0
|
* Remove unneeded empty result short circuitTom Ryder2018-12-011-3/+0
|
* Remove redundant error code in short circuitsTom Ryder2018-12-018-10/+10
|
* Adjust loop short circuits and pattern matchesTom Ryder2018-12-0110-20/+45
|
* Remove unneeded quoting in case statementTom Ryder2018-12-011-1/+1
|
* Remove needless line breaks from git completionTom Ryder2018-12-011-6/+2
|
* Use inverting exclam mark outside conditionalTom Ryder2018-12-011-4/+4
|
* Remove stray comment no longer applicableTom Ryder2018-12-011-2/+0
|
* Use array+=() syntax in two Bash completion filesTom Ryder2018-12-012-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 gensTom Ryder2018-12-017-56/+14
| | | | I don't believe these are needed anymore, or possibly ever were.
* Use simpler method of no case completion checkTom Ryder2018-12-017-77/+42
|
* Overhaul `keep` completionTom Ryder2018-12-011-58/+43
|
* Simplify an array operation in `bd` completionTom Ryder2018-12-011-1/+1
|
* Overhaul text filename generationTom Ryder2018-12-011-57/+132
|
* Use full `if` condition for SSH hostname comp srcTom Ryder2018-12-013-3/+6
|
* Use full `if` condition for _text_filename sourceTom Ryder2018-12-019-13/+20
|
* Overhaul ssh_config hosts completionTom Ryder2018-12-011-18/+44
|
* Use more idiomatic short-circuit for -r in bashrcTom Ryder2018-12-011-3/+1
|
* Suppress a couple of ShellCheck errorsTom Ryder2018-11-302-0/+2
|
* Remove redundant return short-circuitTom Ryder2018-11-301-1/+1
|
* Add explanatory comments for version checkTom Ryder2018-11-301-3/+3
|
* Use ||/&& short-circuiting only for flow controlTom Ryder2018-11-304-28/+61
| | | | | If we're doing something besides return/exit, it should be a proper `if` condition so that the semantics are clearer.
* Drop support for Bash <= 3.0Tom Ryder2018-11-3014-95/+15
| | | | | | This allows removing a fair bit of boilerplate checking for the availability of `-o bashdefault` for the `complete` builtin, and greatly simplifies the minimum version check.
* Add left-parens to inner case statementsTom Ryder2018-10-319-18/+18
| | | | | This helps older versions of Bash understand that the surrounding subshell isn't terminating.
* Add missing ;; terminatorsTom Ryder2018-10-319-0/+9
|
* Respect completion-ignore-case in custom functionsTom Ryder2018-10-309-0/+129
| | | | | | This involves a little too much boilerplate for my liking, but it's still an improvement over what I had before. I might find a way to make this into a generic function.
* Add .m4a to text filenames completion skipsTom Ryder2018-08-221-2/+2
|
* Stamp down three new ShellCheck 0.5.0 errorsTom Ryder2018-07-252-2/+2
| | | | All of these are false positives.
* Break sh noglob guard into two lines for clarityTom Ryder2018-06-293-3/+6
| | | | They're nicer to read this way.
* Correct typo in .bashrcTom Ryder2018-06-291-1/+1
|
* Quote all Bash completion targets literallyTom Ryder2017-11-081-45/+46
| | | | | | This helps ShellCheck understand them as literal strings for linting purposes, but it seems (and highlights) a little bit clearer this way anyway.
* Add "do", "then" keywords to Bash completionTom Ryder2017-11-061-0/+2
| | | | | | | | | | The Bash keywords "do" and "then" will be followed by another command. Adding them to this list means that pressing tab after "if foo ; then b" will complete for all command names beginning with "b". I was actually a little surprised that this worked, but there isn't really any reason to be; they're shell words just like everything else, not metasyntactic characters or anything like that.
* Break bash/bashrc.d/completion.bash inline listsTom Ryder2017-11-061-19/+66
| | | | | | | Break the sometimes long list of target keywords after the `complete` builtin and its options into newline-separated lists. This should make reading these lists a little easier, and also confuses Vim's syntax highlighting somewhat less.
* Escape backslashes in command prompt outputTom Ryder2017-07-051-4/+10
| | | | | | To stop them getting interpreted as \h, \w etc. None of these *should* be able to emit backslashes (it's an illegal branch name), but best to be thorough.
* Remove user@ prefix from promptTom Ryder2017-06-191-2/+2
|
* Allow setting a prompt mode for the shellTom Ryder2017-06-161-2/+2
|
* Unset command_not_found_handle in Bash startupTom Ryder2017-06-101-0/+3
|
* Remove ad()Tom Ryder2017-05-261-2/+0
| | | | It has no real advantages over and isn't as clever as just cd /a*/b*/c*
* Correct comment spelling errorTom Ryder2017-05-261-1/+1
|
* Fix up completions for td(1df)Tom Ryder2017-05-231-4/+11
| | | | Hung on null completion
* Handle POSIX correctness in ~/.bash_profileTom Ryder2017-03-311-0/+7
|
* Remove error-prone git-add(1) completionTom Ryder2017-02-261-23/+0
| | | | Just files and directories will do fine
* Revert "Use backslash to escape single char"Tom Ryder2017-02-171-2/+2
| | | | | | This reverts commit 245c2d6647e34fb432066360499ed02c5711271c. shellcheck worries about this.
* Correct comment in `source` completionTom Ryder2017-02-131-1/+1
|
* Add chgrp(1) completionTom Ryder2017-02-131-0/+20
|
* Use backslash to escape single charTom Ryder2017-02-121-2/+2
|