Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move prompt resetting into its own file | Tom Ryder | 2017-01-11 | 2 | -6/+5 |
| | |||||
* | Unset some more stupid variables | Tom Ryder | 2017-01-11 | 2 | -5/+4 |
| | |||||
* | More cleaning crap | Tom Ryder | 2017-01-11 | 1 | -0/+3 |
| | |||||
* | Unset stupid GNU options to grep(1)/ls(1) | Tom Ryder | 2017-01-11 | 2 | -0/+6 |
| | |||||
* | Work around systems that export PS1 | Tom Ryder | 2017-01-11 | 1 | -0/+6 |
| | | | | So far I don't like SlackWare's shell setup very much at all | ||||
* | Have ls() func undo aliases in its way | Tom Ryder | 2017-01-11 | 1 | -0/+4 |
| | |||||
* | Group single-letter ls(1) opts | Tom Ryder | 2017-01-11 | 1 | -8/+4 |
| | |||||
* | Use POSIX-compatible versions of ls(1) opts | Tom Ryder | 2017-01-11 | 2 | -22/+14 |
| | |||||
* | Change some return codes for dir marking funcs | Tom Ryder | 2017-01-10 | 3 | -3/+3 |
| | | | | | The mark not being set isn't really a usage error for the function given. | ||||
* | Move tmux() function to tm(1df) | Tom Ryder | 2017-01-10 | 1 | -19/+0 |
| | | | | No real reason for it to be a shell function | ||||
* | Much simpler LC_COLLATE approach | Tom Ryder | 2017-01-09 | 1 | -15/+4 |
| | |||||
* | Force LC_COLLATE to a sane value | Tom Ryder | 2017-01-09 | 1 | -0/+15 |
| | | | | | | | | It always really annoys me when e.g. the leading dot or leading slash in pathnames or filenames gets ignored for the purposes of sorting. I may refine this later on but it seems like a good start for an approach. | ||||
* | Adjust subshell logic in md() | Tom Ryder | 2017-01-08 | 1 | -5/+8 |
| | |||||
* | Improvements to path() | Tom Ryder | 2017-01-07 | 1 | -16/+39 |
| | | | | | | | | * Move common directory argument checking into helper function * Tolerate only one directory argument * Show subcommand in error output * Don't show help on failed commands, just suggest it * (Technicality) Fix trailing-newline lossage in subshell function | ||||
* | Resolve an md() issue | Tom Ryder | 2017-01-05 | 1 | -13/+5 |
| | | | | Made the whole thing tidier, actually | ||||
* | Soothe shellcheck about new marked dirs funcs | Tom Ryder | 2017-01-02 | 2 | -1/+2 |
| | |||||
* | Handle simple relative dirs in md() | Tom Ryder | 2017-01-02 | 1 | -0/+9 |
| | | | | And add an issue about handling complex ones | ||||
* | Add marked-dir tools | Tom Ryder | 2017-01-02 | 4 | -0/+71 |
| | |||||
* | Remove an unnecessary trailing slash from ad() | Tom Ryder | 2017-01-02 | 1 | -1/+1 |
| | |||||
* | Work around newline-stripping in param expansion | Tom Ryder | 2017-01-02 | 6 | -12/+30 |
| | |||||
* | Fix a zsh-as-sh/ksh-specific issue | Tom Ryder | 2016-12-30 | 1 | -0/+8 |
| | | | | Very niche, but interesting to fix anyway | ||||
* | Put operating system into OS env var | Tom Ryder | 2016-12-28 | 1 | -0/+3 |
| | |||||
* | Don't save history for ed(1) rlwrap | Tom Ryder | 2016-12-24 | 1 | -1/+1 |
| | |||||
* | Change prompt character for ed(1) wrapper | Tom Ryder | 2016-12-22 | 1 | -2/+2 |
| | | | | | | POSIX default prompt for ed(1) (after P command) is an asterisk rather than a colon. I suppose it makes sense to have a distinct character from the one used for ex(1). | ||||
* | Move pwgen() wrapper into pwg(1df) | Tom Ryder | 2016-12-19 | 1 | -7/+0 |
| | |||||
* | Remove diff()/rcsdiff() function wrappers | Tom Ryder | 2016-12-19 | 2 | -20/+0 |
| | | | | | More trouble than they're worth, and looking at my shell history it looks like I type out the -u all the time anyway | ||||
* | Make diff default even more conservative | Tom Ryder | 2016-12-19 | 1 | -3/+3 |
| | |||||
* | Only add -u to diff() call if more than two args | Tom Ryder | 2016-12-19 | 1 | -1/+13 |
| | |||||
* | Remove lhn() | Tom Ryder | 2016-12-19 | 1 | -12/+0 |
| | | | | Not portable, and I never use it anyway | ||||
* | Use -e test to be consistent | Tom Ryder | 2016-12-19 | 1 | -1/+1 |
| | |||||
* | Attempt a much saner approach to managing SHLVL | Tom Ryder | 2016-12-19 | 1 | -9/+0 |
| | |||||
* | Defer kshrc loading until after shrc all loaded | Tom Ryder | 2016-12-18 | 1 | -0/+3 |
| | |||||
* | Move TMUX_SHLVL trick into shrc.d | Tom Ryder | 2016-12-18 | 1 | -0/+9 |
| | |||||
* | Change tack; force ENV if the file exists | Tom Ryder | 2016-12-18 | 1 | -2/+2 |
| | |||||
* | Move ksh.sh shim into ksh subdir | Tom Ryder | 2016-12-17 | 1 | -30/+0 |
| | | | | | So it doesn't get installed on systems where I don't use ksh, since it's mostly not needed | ||||
* | Second try at compatible ksh test | Tom Ryder | 2016-12-17 | 1 | -6/+4 |
| | | | | I guess this is my life now | ||||
* | Improve ksh version test to catch ksh93s+ | Tom Ryder | 2016-12-17 | 1 | -1/+25 |
| | | | | And hopefully all versions below | ||||
* | Add a second version check to detect ksh | Tom Ryder | 2016-12-17 | 1 | -1/+1 |
| | |||||
* | Move HOSTNAME call into shrc | Tom Ryder | 2016-12-17 | 1 | -0/+3 |
| | |||||
* | Rename all pdksh stuff to ksh | Tom Ryder | 2016-12-17 | 1 | -6/+4 |
| | | | | As part of a foray into more active use of ksh and derivatives. | ||||
* | Add ad() | Tom Ryder | 2016-12-13 | 1 | -0/+77 |
| | |||||
* | Use opening parens for case safety in subshell | Tom Ryder | 2016-12-11 | 2 | -10/+10 |
| | |||||
* | Prevent getopts call in tree() panicking | Tom Ryder | 2016-12-07 | 1 | -1/+2 |
| | |||||
* | Remove setterm(1) call | Tom Ryder | 2016-12-03 | 1 | -3/+0 |
| | | | | More trouble than it's worth | ||||
* | Terser way to implement quiet command failures | Tom Ryder | 2016-12-03 | 1 | -3/+1 |
| | | | | Wrap it in curly brackets to make it a compound command | ||||
* | Split ~/.shrc off stub ~/.shinit file | Tom Ryder | 2016-12-03 | 3 | -9/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | NetBSD sh(1) and possible others don't tolerate a `return` short-circuit for ENV, which means that because that implementation also sources ENV if set regardless of whether the shell is interactive or not, all of the interactive stuff in ~/.shrc and ~/.shrc.d gets uselessly sourced and loaded up for non-interactive invocations of sh(1). To work around this, I've set ENV to be a new ~/.shinit file instead, which sources the ~/.shrc file only if the shell is interactive. ~/.shinit is the filename suggested in the man page for NetBSD sh(1) and Debian dash(1) as well. NetBSD's documented behaviour seems to be contrary to POSIX 2003: > ENV: This variable, when and only when an interactive shell is > invoked, shall be subjected to parameter expansion (see Parameter > Expansion ) by the shell, and the resulting value shall be used as a > pathname of a file containing shell commands to execute in the > current environment. No matter; this works fine, and makes non-interactive invocations of sh(1) on NetBSD much faster. | ||||
* | setterm(1) isn't as standard as I thought | Tom Ryder | 2016-12-01 | 1 | -3/+5 |
| | | | | | | | | | | | | | | | | | It's not available on default installs of any of the three major open-source BSDs, and isn't specified by POSIX. I only noticed this because the implement of sh(1) in NetBSD 7.0 seems to emit errors from calls to `command -p` to the terminal, regardless of any redirection of standard output and error: $ uname -a NetBSD faeroes 7.0.1_PATCH NetBSD 7.0.1_PATCH (GENERIC.201607220540Z) amd64 $ command -p setterm setterm: not found $ command -p setterm >/dev/null setterm: not found $ command -p setterm >/dev/null 2>&1 setterm: not found | ||||
* | Remove some trailing whitespace | Tom Ryder | 2016-10-19 | 2 | -2/+2 |
| | |||||
* | Use simpler method for `path check` | Tom Ryder | 2016-09-26 | 1 | -5/+6 |
| | | | | Easier to read and does not require a subshell | ||||
* | Correct a comment | Tom Ryder | 2016-09-18 | 1 | -2/+2 |
| |