aboutsummaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-02 15:50:52 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-02 15:50:52 +1300
commitca20e3e759d168a9f4dacdb05dad2a2b295f458b (patch)
tree687b7c6c983933e0e7fa04c8a631dbc7a0386e58 /README.markdown
parentRemove an unnecessary trailing slash from ad() (diff)
downloaddotfiles-ca20e3e759d168a9f4dacdb05dad2a2b295f458b.tar.gz
dotfiles-ca20e3e759d168a9f4dacdb05dad2a2b295f458b.zip
Add marked-dir tools
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index 777d5dd1..94bf42bb 100644
--- a/README.markdown
+++ b/README.markdown
@@ -164,6 +164,12 @@ terminals.
If a function can be written in POSIX `sh` without too much hackery, I put it
in `sh/shrc.d` to be loaded by any POSIX interactive shell. Those include:
+* Four functions for using a "marked" directory, which I find a more
+ manageable concept than the `pushd`/`popd` directory stack:
+ * `md()` marks a given (or the current) directory.
+ * `gd()` goes to the marked directory.
+ * `pmd()` prints the marked directory.
+ * `xd()` swaps the current and marked directories.
* `ad()` is a `cd` shortcut accepting targets like `/u/l/b` for
`/usr/local/bin`, as long as they are unique.
* `bc()` silences startup messages from GNU `bc(1)`.