aboutsummaryrefslogtreecommitdiff
path: root/bash
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* More accurate commend for hostcomplete (turn off)Tom Ryder2017-02-121-2/+2
|
* Add mail(1)/mutt(1) abook address completionTom Ryder2017-02-123-0/+30
|
* Use bashdefault if available in more completionsTom Ryder2017-02-128-8/+56
|
* Break a long lineTom Ryder2017-02-101-2/+2
|
* Break a long lineTom Ryder2017-02-101-1/+2
|
* Improve and correct some commentsTom Ryder2017-02-102-28/+30
|
* Add completion for finger(1)Tom Ryder2017-01-281-0/+2
|
* Use FUNCNAME for self-refs in Git completionTom Ryder2017-01-281-9/+9
|
* Add openssl(1ssl) completionTom Ryder2017-01-281-0/+32
|
* Fix nc(1) completions, add nmap(1) completionsTom Ryder2017-01-283-2/+6
|
* Add host completion for some common toolsTom Ryder2017-01-285-0/+10
|
* Start using Bash host completionTom Ryder2017-01-282-2/+6
| | | | But use ~/.hosts if it's there
* Extend "fallback" prompt a bitTom Ryder2017-01-271-1/+4
| | | | Include username/hostname if no SSH variables
* Add "pop" and "shift" methods to path()Tom Ryder2017-01-251-1/+1
|
* Show prompt prefix if a shell is exoticTom Ryder2017-01-251-0/+6
| | | | | | | That is, include e.g. "ksh:" as a prefix to the prompt if the user appears to have Bash or Zsh (or anything else) as their login shell. This is probably imperfect, but it's a start.
* Clear away all aliases for interactive shellsTom Ryder2017-01-251-0/+5
| | | | | | | | | Some systems like OpenBSD or Slackware set up well-meaning aliases that I don't want. We do this for Bash, Yash, and Zsh, but not for Ksh, because it looks like its implementations all variously use aliases to implement some POSIX builtins like fc(1) or type(1) in terms of their own builtins.
* Be more specific in ref name trimmingTom Ryder2017-01-251-1/+1
| | | | | e.g. for a namespaced branch "foo/bar/bar", don't strip the leading part off
* Remove SHLVL nested shell feature for nowTom Ryder2017-01-241-6/+0
| | | | | Causes a bit too much curliness in configuration; may need a more comprehensive approach.
* Remove misplaced \0 in completion funcTom Ryder2017-01-071-1/+1
|
* Soothe a shellcheck errorTom Ryder2017-01-031-0/+1
|
* Short-circuit in rbash before even loading ENVTom Ryder2017-01-031-3/+4
|
* Add completion for md()Tom Ryder2017-01-021-0/+2
|
* Add workaround to what looks like a bug to meTom Ryder2016-12-271-0/+5
|
* Tell ShellCheck to ignore an errorTom Ryder2016-12-271-0/+1
| | | | | ret actually is assigned, just not in any place ShellCheck could reasonably be expected to find
* Realised easy win avoiding subshellsTom Ryder2016-12-271-7/+4
| | | | And also the PROMPT_RETURN fudge in Bash/Zsh
* Ignore stderr from manpath(1) checkTom Ryder2016-12-251-1/+1
|
* Use [!...] not [^...]Tom Ryder2016-12-221-1/+1
| | | | More portable
* Fix printf argument mismatch bugsTom Ryder2016-12-212-2/+2
| | | | What did we do before ShellCheck?
* Use clearer logic for prompt color settingTom Ryder2016-12-211-8/+7
|
* Exclude .doc from blacklisted extensionsTom Ryder2016-12-201-2/+3
|
* Accept all directory names for text completionTom Ryder2016-12-201-0/+6
|
* Return not continue in text filename completionTom Ryder2016-12-201-5/+5
|
* Allow .gz completion for text fns, but not .tar.gzTom Ryder2016-12-191-3/+2
|
* Request version with "ver" shortcut not promptTom Ryder2016-12-191-0/+4
|