aboutsummaryrefslogtreecommitdiff
path: root/sh
Commit message (Collapse)AuthorAgeFilesLines
...
* Make diff default even more conservativeTom Ryder2016-12-191-3/+3
|
* Only add -u to diff() call if more than two argsTom Ryder2016-12-191-1/+13
|
* Remove lhn()Tom Ryder2016-12-191-12/+0
| | | | Not portable, and I never use it anyway
* Use -e test to be consistentTom Ryder2016-12-191-1/+1
|
* Attempt a much saner approach to managing SHLVLTom Ryder2016-12-191-9/+0
|
* Defer kshrc loading until after shrc all loadedTom Ryder2016-12-181-0/+3
|
* Move TMUX_SHLVL trick into shrc.dTom Ryder2016-12-181-0/+9
|
* Change tack; force ENV if the file existsTom Ryder2016-12-181-2/+2
|
* Move ksh.sh shim into ksh subdirTom Ryder2016-12-171-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 testTom Ryder2016-12-171-6/+4
| | | | I guess this is my life now
* Improve ksh version test to catch ksh93s+Tom Ryder2016-12-171-1/+25
| | | | And hopefully all versions below
* Add a second version check to detect kshTom Ryder2016-12-171-1/+1
|
* Move HOSTNAME call into shrcTom Ryder2016-12-171-0/+3
|
* Rename all pdksh stuff to kshTom Ryder2016-12-171-6/+4
| | | | As part of a foray into more active use of ksh and derivatives.
* Add ad()Tom Ryder2016-12-131-0/+77
|
* Use opening parens for case safety in subshellTom Ryder2016-12-112-10/+10
|
* Prevent getopts call in tree() panickingTom Ryder2016-12-071-1/+2
|
* Remove setterm(1) callTom Ryder2016-12-031-3/+0
| | | | More trouble than it's worth
* Terser way to implement quiet command failuresTom Ryder2016-12-031-3/+1
| | | | Wrap it in curly brackets to make it a compound command
* Split ~/.shrc off stub ~/.shinit fileTom Ryder2016-12-033-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 thoughtTom Ryder2016-12-011-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 whitespaceTom Ryder2016-10-192-2/+2
|
* Use simpler method for `path check`Tom Ryder2016-09-261-5/+6
| | | | Easier to read and does not require a subshell
* Correct a commentTom Ryder2016-09-181-2/+2
|
* Move HISTSIZE and MAILCHECK to shrcTom Ryder2016-09-011-0/+6
| | | | Turns out they're POSIX variables!
* Refactor welcome.shTom Ryder2016-09-011-38/+29
|
* Use terser syntax for path additionTom Ryder2016-09-011-3/+1
|
* Use more compatible block size for ls(1)Tom Ryder2016-08-311-1/+1
| | | | | Ancient GNU ls(1) accepts this even if it doesn't use it in the same way a more modern one does (requiring -S to show the blocks used).
* Make comment on BROWSER more usefulTom Ryder2016-08-311-1/+2
|
* Add x()Tom Ryder2016-08-301-0/+7
|
* Fix mysql()Tom Ryder2016-08-301-6/+12
|
* Use command -p to find tty(1)Tom Ryder2016-08-271-1/+1
|
* Move SSH_ASKPASS setup to ~/.xinitrcTom Ryder2016-08-271-4/+0
|
* Use only system-path mkdir/grep for options setupTom Ryder2016-08-271-2/+2
| | | | A little quicker
* Move bash-independent code ~/.bashrc -> ~/.shrcTom Ryder2016-08-271-0/+9
|
* Fix some comments in options.shTom Ryder2016-08-271-2/+2
|
* Improvements to tree() to handle color optionsTom Ryder2016-08-261-3/+25
|
* Add tree()Tom Ryder2016-08-261-0/+9
|
* Combine welcome messages into one scriptTom Ryder2016-08-254-69/+54
|
* Remove default PS1 for shTom Ryder2016-08-251-5/+0
|
* Remove gore() and lore()Tom Ryder2016-08-252-51/+0
| | | | Changed my mind
* Remove unneeded { } around options() funcTom Ryder2016-08-251-2/+2
| | | | I'm learning a lot from izabera today
* Switch ls()/readline to horizontal list/completeTom Ryder2016-08-252-0/+5
| | | | <https://github.com/izabera/libash/blob/9e709a56a148b4311792cc66cd21b61a73434573/extras/sample_inputrc#L33>
* Reassure shellcheck about ls(1) pipingTom Ryder2016-08-241-0/+1
|
* Add -n to grep(1) call for gore()Tom Ryder2016-08-241-1/+2
|
* Add lore()Tom Ryder2016-08-241-0/+28
|
* Force --hide-control-chars on ls(1) if availableTom Ryder2016-08-242-5/+12
| | | | | I prefer it to literal or C-style escaping representations, and ls(1) isn't for scripting output anyway.
* Rename gress() to gore()Tom Ryder2016-08-241-5/+4
| | | | Important work going on here, folks
* Add gress()Tom Ryder2016-08-241-0/+22
|
* Improve a commentTom Ryder2016-08-241-1/+1
|