Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Prevent me from using `which` | Tom Ryder | 2019-06-10 | 1 | -0/+4 |
| | |||||
* | Two-space sentences in shell comments | Tom Ryder | 2018-12-27 | 1 | -1/+1 |
| | |||||
* | Break up some long lines | Tom Ryder | 2018-12-26 | 1 | -2/+3 |
| | |||||
* | 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. | ||||
* | 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 |
| | |||||
* | Use consistent temp names for shell subfile vars | Tom Ryder | 2018-12-02 | 1 | -7/+25 |
| | |||||
* | Remove `kill` completion | Tom Ryder | 2018-12-01 | 1 | -1/+2 |
| | | | | Completing PIDs is stupid, in retrospect. | ||||
* | Don't include dotfiles in keep() names | Tom Ryder | 2018-12-01 | 1 | -1/+1 |
| | | | | | Variable and function names in Bash can't start with a period, so it's not appropriate to use the `dotglob` shell option to include dotfiles. | ||||
* | Use consistent comments for version numbers | Tom Ryder | 2018-12-01 | 1 | -1/+1 |
| | |||||
* | Suppress a couple of ShellCheck errors | Tom Ryder | 2018-11-30 | 1 | -0/+1 |
| | |||||
* | Remove redundant return short-circuit | Tom Ryder | 2018-11-30 | 1 | -1/+1 |
| | |||||
* | Use ||/&& short-circuiting only for flow control | Tom Ryder | 2018-11-30 | 1 | -19/+39 |
| | | | | | If we're doing something besides return/exit, it should be a proper `if` condition so that the semantics are clearer. | ||||
* | Stamp down three new ShellCheck 0.5.0 errors | Tom Ryder | 2018-07-25 | 2 | -2/+2 |
| | | | | All of these are false positives. | ||||
* | Break sh noglob guard into two lines for clarity | Tom Ryder | 2018-06-29 | 2 | -2/+4 |
| | | | | They're nicer to read this way. | ||||
* | Quote all Bash completion targets literally | Tom Ryder | 2017-11-08 | 1 | -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 completion | Tom Ryder | 2017-11-06 | 1 | -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 lists | Tom Ryder | 2017-11-06 | 1 | -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 output | Tom Ryder | 2017-07-05 | 1 | -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 prompt | Tom Ryder | 2017-06-19 | 1 | -2/+2 |
| | |||||
* | Allow setting a prompt mode for the shell | Tom Ryder | 2017-06-16 | 1 | -2/+2 |
| | |||||
* | Revert "Use backslash to escape single char" | Tom Ryder | 2017-02-17 | 1 | -2/+2 |
| | | | | | | This reverts commit 245c2d6647e34fb432066360499ed02c5711271c. shellcheck worries about this. | ||||
* | Use backslash to escape single char | Tom Ryder | 2017-02-12 | 1 | -2/+2 |
| | |||||
* | Break a long line | Tom Ryder | 2017-02-10 | 1 | -2/+2 |
| | |||||
* | Break a long line | Tom Ryder | 2017-02-10 | 1 | -1/+2 |
| | |||||
* | Improve and correct some comments | Tom Ryder | 2017-02-10 | 1 | -4/+4 |
| | |||||
* | Start using Bash host completion | Tom Ryder | 2017-01-28 | 1 | -0/+4 |
| | | | | But use ~/.hosts if it's there | ||||
* | Extend "fallback" prompt a bit | Tom Ryder | 2017-01-27 | 1 | -1/+4 |
| | | | | Include username/hostname if no SSH variables | ||||
* | Show prompt prefix if a shell is exotic | Tom Ryder | 2017-01-25 | 1 | -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. | ||||
* | Be more specific in ref name trimming | Tom Ryder | 2017-01-25 | 1 | -1/+1 |
| | | | | | e.g. for a namespaced branch "foo/bar/bar", don't strip the leading part off | ||||
* | Remove SHLVL nested shell feature for now | Tom Ryder | 2017-01-24 | 1 | -6/+0 |
| | | | | | Causes a bit too much curliness in configuration; may need a more comprehensive approach. | ||||
* | Add workaround to what looks like a bug to me | Tom Ryder | 2016-12-27 | 1 | -0/+5 |
| | |||||
* | Tell ShellCheck to ignore an error | Tom Ryder | 2016-12-27 | 1 | -0/+1 |
| | | | | | ret actually is assigned, just not in any place ShellCheck could reasonably be expected to find | ||||
* | Realised easy win avoiding subshells | Tom Ryder | 2016-12-27 | 1 | -7/+4 |
| | | | | And also the PROMPT_RETURN fudge in Bash/Zsh | ||||
* | Use [!...] not [^...] | Tom Ryder | 2016-12-22 | 1 | -1/+1 |
| | | | | More portable | ||||
* | Fix printf argument mismatch bugs | Tom Ryder | 2016-12-21 | 2 | -2/+2 |
| | | | | What did we do before ShellCheck? | ||||
* | Use clearer logic for prompt color setting | Tom Ryder | 2016-12-21 | 1 | -8/+7 |
| | |||||
* | Request version with "ver" shortcut not prompt | Tom Ryder | 2016-12-19 | 1 | -0/+4 |
| | |||||
* | Attempt a much saner approach to managing SHLVL | Tom Ryder | 2016-12-19 | 1 | -3/+2 |
| | |||||
* | Handle tmux sessions showing SHLVL properly | Tom Ryder | 2016-11-30 | 1 | -3/+3 |
| | |||||
* | Only add > starting from SHLVL=2 | Tom Ryder | 2016-11-30 | 1 | -1/+1 |
| | |||||
* | Add > signs to show shell indentation level | Tom Ryder | 2016-11-30 | 1 | -0/+7 |
| | | | | | This needs extension to handle tmux sessions; it should be something like SHLVL - TMUX_SHLVL, which I'm not quite sure how to implement yet. | ||||
* | Correct check of --is-work-tree test | Tom Ryder | 2016-10-15 | 1 | -1/+1 |
| | |||||
* | Add % prefix to job spec completion | Tom Ryder | 2016-10-04 | 1 | -2/+2 |
| | |||||
* | Stop `keep` writing empty files for undef vars | Tom Ryder | 2016-09-30 | 1 | -13/+12 |
| | |||||
* | Completion for aliases | Tom Ryder | 2016-09-23 | 1 | -1/+4 |
| | |||||
* | Add some var quoting within param expansion | Tom Ryder | 2016-09-20 | 1 | -6/+6 |
| | |||||
* | Block output/error from prompt tput(1)/git(1) | Tom Ryder | 2016-09-20 | 1 | -102/+102 |
| | | | | Should make things just a little bit faster | ||||
* | Fix an issue (silencing Git prompt errors) | Tom Ryder | 2016-09-08 | 1 | -1/+1 |
| | |||||
* | Restore old code for describing Git prompt commit | Tom Ryder | 2016-09-07 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | I'm really confused. I could have sworn this was working correctly (i.e. the --always option spat out a short reference to the commit as a fallback), but I must have been wrong. Maybe I hadn't installed the appropriate file when I was testing it. At first I thought this was a bug introduced in Git 2.10, but the short-circuit disregarding --always if --exact-match or --candidates=0 is set seems to have been in the `describe` builtin for ages. I must have just tested poorly; I can't see any other explanation in the source. No matter; this isn't much slower. |