aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-01-23 15:42:31 -0800
committerKaz Kylheku <kaz@kylheku.com>2024-01-23 15:42:31 -0800
commit61d64610191d29a2b058d5d5011b4a3710ad2aa1 (patch)
tree159a8ee76afefe5022d3e86b4c9e49f03965ba08
parentea2a3600f1b8b432c2a1f3adaf873982e9fa489b (diff)
downloadcdlog-61d64610191d29a2b058d5d5011b4a3710ad2aa1.tar.gz
cdlog-61d64610191d29a2b058d5d5011b4a3710ad2aa1.tar.bz2
cdlog-61d64610191d29a2b058d5d5011b4a3710ad2aa1.zip
Add cl alias for cdlog.
-rw-r--r--README.md4
-rw-r--r--cdlog.sh1
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