| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Handle case if PWD does not start with a slash--a big "Shouldn't
Happen", but easy enough to be worth handling, since it would loop
infinitely otherwise
|
| |
|
|
|
|
| |
Including rigorous trailing-slash handling
|
| |
|
| |
|
| |
|
|
|
|
| |
Avoids subshell mess and consequent trailing-space workaround
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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`.
|
| |
|
|
|
|
| |
It doesn't accept options; cd() needs to because it's a wrapper
|
|
|