Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use XDG base directories for shell keep() funcs | Tom Ryder | 2020-04-22 | 1 | -2/+2 |
| | |||||
* | Fix up a few cosmetic shell anti-patterns | Tom Ryder | 2019-03-29 | 2 | -4/+6 |
| | |||||
* | Clarify control flow in shell scripts | Tom Ryder | 2018-12-31 | 2 | -14/+30 |
| | |||||
* | Break up some long lines | Tom Ryder | 2018-12-27 | 1 | -4/+4 |
| | |||||
* | Two-space sentences in shell comments | Tom Ryder | 2018-12-27 | 2 | -6/+6 |
| | |||||
* | Remove unneeded semicolon from sh "for VAR ; do" | Tom Ryder | 2018-12-06 | 1 | -1/+1 |
| | | | | | It turns out the semicolon belongs to the "in" syntax, and is optional without it. | ||||
* | Use consistent temp names for shell subfile vars | Tom Ryder | 2018-12-02 | 1 | -3/+3 |
| | |||||
* | Stamp down three new ShellCheck 0.5.0 errors | Tom Ryder | 2018-07-25 | 1 | -0/+1 |
| | | | | All of these are false positives. | ||||
* | Break sh noglob guard into two lines for clarity | Tom Ryder | 2018-06-29 | 1 | -1/+2 |
| | | | | They're nicer to read this way. | ||||
* | Inline some switch cases | Tom Ryder | 2017-06-27 | 1 | -3/+1 |
| | |||||
* | 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 |
| | |||||
* | Remove Yash support | Tom Ryder | 2017-05-24 | 1 | -1/+1 |
| | | | | I never use it | ||||
* | Remove SC2154 ignore for $.sh from ksh startup | Tom Ryder | 2017-03-29 | 1 | -1/+0 |
| | | | | <https://github.com/koalaman/shellcheck/commit/7124c113e8ead22916b91eb3fea1e7251b91f422> | ||||
* | Don't re-set HISTSIZE in kshrc | Tom Ryder | 2017-02-17 | 1 | -1/+0 |
| | | | | Already set in shrc | ||||
* | Condense ENV_EXT hack, unset it | Tom Ryder | 2017-02-17 | 1 | -4/+1 |
| | |||||
* | shellcheck suggested a more efficient assignment | Tom Ryder | 2017-02-17 | 1 | -1/+1 |
| | |||||
* | Correct a typeset call | Tom Ryder | 2017-01-28 | 1 | -1/+1 |
| | |||||
* | Extend "fallback" prompt a bit | Tom Ryder | 2017-01-27 | 1 | -1/+4 |
| | | | | Include username/hostname if no SSH variables | ||||
* | Fixed prompt alignment hack for ksh | Tom Ryder | 2017-01-26 | 1 | -3/+3 |
| | | | | | | | The manual page for mksh hints that the escaped initial character should in fact be a carriage return, not a newline. That seems to work really well. The newline variable was an empty string before this commit anyway because it was stripped by the subshell expansion. | ||||
* | Show prompt prefix if a shell is exotic | Tom Ryder | 2017-01-25 | 1 | -0/+14 |
| | | | | | | | 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 | -8/+0 |
| | | | | | Causes a bit too much curliness in configuration; may need a more comprehensive approach. | ||||
* | Have ls() func undo aliases in its way | Tom Ryder | 2017-01-11 | 1 | -2/+0 |
| | |||||
* | Don't let OpenBSD alias `ls` in ksh | Tom Ryder | 2017-01-11 | 1 | -0/+2 |
| | |||||
* | Tolerate C-M-l for clear window in ksh | Tom Ryder | 2017-01-07 | 1 | -14/+3 |
| | | | | | | | Already works in ksh93 and mksh. Trapping C-l in ksh93 interferes with the builtin SIGWINCH handling, clearing the screen every time the window resizes, and I can't find a good way to work around it. Probably best not to fight this. | ||||
* | Rename keyboard trap func less ambiguously | Tom Ryder | 2017-01-06 | 1 | -2/+2 |
| | |||||
* | Add tab completion settings to ksh | Tom Ryder | 2017-01-06 | 1 | -2/+8 |
| | |||||
* | Appease ShellCheck | Tom Ryder | 2017-01-06 | 1 | -2/+3 |
| | |||||
* | Found workable ^L bindings in all three kshes | Tom Ryder | 2017-01-06 | 1 | -8/+6 |
| | |||||
* | Clean binding of ^L in ksh93 to clear screen | Tom Ryder | 2017-01-06 | 1 | -18/+7 |
| | | | | <http://unix.stackexchange.com/questions/272591/how-to-make-ctrl-l-to-clear-screen-in-ksh-under-red-hat-linux/272720#272720> | ||||
* | Experimental/not-very-good-yet ksh bindings | Tom Ryder | 2017-01-06 | 1 | -0/+34 |
| | | | | | | Just starting with what I know and seeing if I can make ^L work the same way it does in Bash. Once I understand this a bit better I intend to have a crack at writing some dynamic completion for ksh93. | ||||
* | Add "trackall" option to ksh | Tom Ryder | 2017-01-06 | 1 | -0/+3 |
| | |||||
* | Add a couple of ksh options | Tom Ryder | 2017-01-06 | 1 | -1/+12 |
| | |||||
* | Remove unneeded typeset call | Tom Ryder | 2016-12-30 | 1 | -1/+0 |
| | |||||
* | Deal with the kshes' varying treatment of ! in PS1 | Tom Ryder | 2016-12-28 | 1 | -2/+22 |
| | |||||
* | Quiet a shellcheck error | Tom Ryder | 2016-12-28 | 1 | -0/+1 |
| | | | | | Like in 3828a1f, this variable actually does get set before use, but not in a place ShellCheck could be reasonably expected to find | ||||
* | Change quoting mechanism | Tom Ryder | 2016-12-27 | 1 | -1/+1 |
| | |||||
* | Fix an issue | Tom Ryder | 2016-12-27 | 1 | -1/+1 |
| | | | | End the prompt subshell with a : to reset $? | ||||
* | Preserve job count quickly for ksh | Tom Ryder | 2016-12-27 | 1 | -3/+1 |
| | |||||
* | 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 | -5/+1 |
| | | | | And also the PROMPT_RETURN fudge in Bash/Zsh | ||||
* | Put exit value of previous command in ksh PS1 | Tom Ryder | 2016-12-27 | 1 | -11/+7 |
| | | | | Found a way to do this that seems to work in all the KSHes I've tried | ||||
* | Use more compatible check | Tom Ryder | 2016-12-22 | 1 | -1/+1 |
| | |||||
* | Limit keep() to ksh93 | Tom Ryder | 2016-12-22 | 1 | -2/+9 |
| | | | | | FreeBSD pdksh doesn't even have complete typeset -p output, nor printf %q, which I think makes this impractical. | ||||
* | Use . not source | Tom Ryder | 2016-12-22 | 1 | -1/+1 |
| | |||||
* | Fork keep() to ksh | Tom Ryder | 2016-12-22 | 1 | -0/+152 |
| | | | | Mostly works. | ||||
* | Use clearer logic for prompt color setting | Tom Ryder | 2016-12-21 | 1 | -8/+7 |
| | |||||
* | Attempt at properly escaping non-printing chars | Tom Ryder | 2016-12-19 | 1 | -1/+6 |
| | | | | | | | | | | | | | | | | This is supposed to be the equivalent of \[ \] in Bash PS1... >Note that since the command line editors try to figure out how long the >prompt is (so they know how far it is to edge of the screen), escape >codes in the prompt tend to mess things up. You can tell the shell not >to count certain sequences (such as escape codes) by prefixing your >prompt with a non-printing char- acter (such as control-A) followed by >a carriage return and then delimiting the escape codes with this >non-printing character. If you don't have any non-printing characters, >you're out of luck... BTW, don't blame me for this hack; it's in the >original ksh. <http://blog.0xpebbles.org/ksh-prompt-coloring-example> | ||||
* | Block a well-intended shellcheck error | Tom Ryder | 2016-12-19 | 1 | -0/+1 |
| |