aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/mkcd.sh
Commit message (Collapse)AuthorAgeFilesLines
* Use `command` consistently, silence ShellCheckTom Ryder2018-12-171-2/+3
| | | | | | | | | | 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.
* Refactor some conditionalsTom Ryder2018-12-111-1/+2
|
* Swap `builtin` for POSIX `command` in mkcd()Tom Ryder2016-08-231-1/+1
|
* Move simple Bash/pdksh functions into POSIX shTom Ryder2016-08-171-0/+4
Have only translated the scripts that translate readily into POSIX sh for now. More complex stuff like that bd/pd/sd/ud navigation for Bash doesn't port as easily, mostly because there isn't an analogue for the "local" keyword in POSIX.