aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/rd.sh
Commit message (Collapse)AuthorAgeFilesLines
* Tidy up comments for POSIX interactive scriptsTom Ryder2022-07-291-0/+1
|
* 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.
* Simplify rd() a lotTom Ryder2017-05-271-35/+10
| | | | Including removing the pesky subshell
* Still tinkering with ?d.sh scriptsTom Ryder2017-05-261-2/+0
|
* Work around newline-stripping in param expansionTom Ryder2017-01-021-2/+5
|
* Fix up ?d() functionsTom Ryder2016-08-231-0/+63
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`.