From 61d64610191d29a2b058d5d5011b4a3710ad2aa1 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 23 Jan 2024 15:42:31 -0800 Subject: Add cl alias for cdlog. --- README.md | 4 ++-- cdlog.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ed937d3..d677d3c 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,8 @@ receives the previously current directory. directory in the log, and removes that entry from the log. The second most recent directory becomes most recent and so on. -* `cdlog` shows a listing of the four most recent entries in the -log. +* `cdlog` function shows a listing of the four most recent entries in the +log. The `cl` command is an alias for this. In addition, the `cdlog.sh` script sets the bash `direxpand` option. With the `direxpand` option, Tab completion on a directory coming diff --git a/cdlog.sh b/cdlog.sh index 75b1e01..47566c7 100644 --- a/cdlog.sh +++ b/cdlog.sh @@ -115,6 +115,7 @@ cdlog() alias cd='cdlog.chdir -P' alias pd='cdlog.pop' alias cs='cdlog.rot' +alias cl='cdlog' # Better completion for $x[Tab] shopt -s direxpand -- cgit v1.2.3