| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This reverts commit efcc4b981d2a10ac3b10522c596f8bf9ddff6ff9.
|
|
|
|
|
|
|
|
|
| |
* cdlog.sh (cdlog_alias): New global array.
* README.md: Documented.
(cdlog.chdir): Check for and expand alias.
(cdlog.alias): New function.
(cdalias): New alias.
|
|
|
|
|
|
|
|
|
|
|
| |
* cdlog.sh (cdlog_autocs): New variable.
(cdlog.chdir): Implement autocs logic, if enabled.
(cdlog.mcd): Use Bash dynamic scoping to override
the cdlog_autocs variable false; we don't want mcd
to have swapping semantics regardless of autocs
mode; the user must use the distinct command mcs.
* README.md: Documented.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Prompting the user on startup can be a nuisance. For instance,
each time I make a new shell out of a text editor, I get
the prompt. Let's just leave the user in a new context, and
make it an explicit command to switch context.
* cdlog.sh (cdlog.init): Remove logic for selecting a new
context, leaving only the allocation of a new context.
(cdlog.recover): New function, split off from cdlog.init.
(cdr): New alias.
* README.md: Documented.
|
|
|
|
|
|
|
|
|
|
|
| |
* cdlog.sh (cdlog.update): Name of file is now in $cdlog_dirs.
(cdlog.get_param): New function.
(cdlog.init): Implement the LRU session selection and optional
recovery. The variable $cdlog_dirs is established, pointing
to the selected session file.
(mainline): Run cdlog.init if $cdlog_dirs is empty.
* README.md: Documented.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* cdlog.sh (cdlog.nicks): Function removed.
(cdlog.update): New function, performing task of cdlog.nicks
as well as persistence to ~/.cdlog.dirs file.
(cdlog.init): New function that initializes the c1-c9
variables.
(mainline): Call cdlog.init. This is now done later in
the file after the function definitions.
(cdlog.args, cdlog.chdir): Call cdlog.update
instead of cdlog.nicks. This is also how the variables $x to
$w will be set the first time when recovering state,
because cdlog.init calls cdlog.args to install the FIFO,
and cdlog.args will call cdlog.update.
* README.md: Documented.
|
|
|
|
|
|
|
| |
* cdlog.sh (cdlog.pop): Rewritten to take argument 1-9, and
iterate from there.
* README.md: Documented.
|
|
|
|
|
|
|
|
| |
* cdlog.sh (cdlog): Take -l option to print all nine
directories in the FIFO.
(cll): New alias, for cdlog -l.
* README.md: Documented.
|
|
|
|
|
|
|
| |
* cdlog.sh (cdlog.mcd): New function.
(mcd, mcs): New aliases.
* README.md: Documented.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* cdlog.sh (cdlog.swap): Function removed.
(cdlog.rot): New function.
(cs): Alias now points to cdlog.rot.
* README.md: Updated.
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|