aboutsummaryrefslogtreecommitdiffstats
path: root/cdlog.sh
Commit message (Collapse)AuthorAgeFilesLines
* New: mcd, mcs: menu-based cd and cs.Kaz Kylheku2024-01-251-0/+37
| | | | | | | * cdlog.sh (cdlog.mcd): New function. (mcd, mcs): New aliases. * README.md: Documented.
* cdlog: simplify prefixes.Kaz Kylheku2024-01-251-5/+6
| | | | | * cdlog.sh (cdlog): Just print numeric indices before the paths.
* print new PWD in pd and cs.Kaz Kylheku2024-01-251-0/+3
| | | | | * cdlog.sh (cdlog.rot, cdlog.pop): Print new current directory if change successful.
* Add cl alias for cdlog.Kaz Kylheku2024-01-231-0/+1
|
* Improve initialization.Kaz Kylheku2024-01-191-8/+6
| | | | | | * cdlog.sh (toplevel): Ensure that c1 exists, so that the init code doesn't access a nonexistent c1. Condense the assignments in the init block.
* Reduce repeated code.Kaz Kylheku2024-01-191-13/+7
| | | | | | * cdlog.sh (cdlog.rot): Eliminate repeated code, distinguishing different parts with a flag indicating the first loop iteration.
* Generalize swap to rotate.Kaz Kylheku2024-01-191-18/+28
| | | | | | | | * cdlog.sh (cdlog.swap): Function removed. (cdlog.rot): New function. (cs): Alias now points to cdlog.rot. * README.md: Updated.
* Remove repetitive code from cdlog.swap.Kaz Kylheku2024-01-191-44/+24
| | | | | | * cdlog.sh (cdlog.args): New function. (cdlog.swap): Use array to do swap in one case.
* Minor code tidying.Kaz Kylheku2024-01-191-17/+9
| | | | | | * cdlog.sh (cdlog.chdir, cdlog.swap): Condense assignment block to fewer lines. (toplevel): Move "cs" alias below.
* cs takes argument; swapping behavior removed from cd.Kaz Kylheku2024-01-191-18/+74
| | | | | | | | * cdlog.sh (cdlog.chdir): No specifial behavior when $PWD equals $c1. (cdlog.swap): Swapping behavior implemented here now, with optional numeric argument to swap with entries other than first.
* Change semantics of swap implementation.Kaz Kylheku2024-01-181-4/+4
| | | | | | * cdlog.sh (cdlog.chdir): When the user changes to $c1, let's not involve $c2 but just effectively exchange the current working directory and $c1.
* Change naming of functions to dot notation.Kaz Kylheku2024-01-181-8/+8
|
* Initial version of cdlog.Kaz Kylheku2024-01-181-0/+114