aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/ud.sh
Commit message (Collapse)AuthorAgeFilesLines
* Two-space sentences in shell commentsTom Ryder2018-12-271-1/+1
|
* Use `command` consistently, silence ShellCheckTom Ryder2018-12-171-1/+2
| | | | | | | | | | ShellCheck (SC2164) is upset about these `cd` commands where the return type isn't being checked, but they're all by design, as they're the last command in the function, and thereby constitute the function's return value implicitly. Otherwise, this commit changes the shrc.d and profile.d subfiles to use the `command` wrapper only where it's actually needed.
* Remove hare-brained no-op lineTom Ryder2017-05-261-1/+0
|
* Reimplement ud()Tom Ryder2017-05-261-32/+30
| | | | More fault-tolerant and no subshell or temporary vars
* Work around newline-stripping in param expansionTom Ryder2017-01-021-2/+5
|
* Fix up ?d() functionsTom Ryder2016-08-231-11/+15
| | | | | | Count arguments in right places; return 2 on usage errors where possible; minimise subshell activity; move directory replacement functionality to its own function `rd()` rather than overloading `cd`.
* Correctly bail from failed subshellTom Ryder2016-08-201-3/+3
|
* Port ud() to POSIX shTom Ryder2016-08-201-0/+42