From 10a60b6ec2de642fc72db3e20657dd2c59951311 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 20 Sep 2015 15:25:13 +0200 Subject: Document `cd -` Fixes #1946 --- doc_src/cd.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'doc_src') diff --git a/doc_src/cd.txt b/doc_src/cd.txt index bb4dc488..3153c383 100644 --- a/doc_src/cd.txt +++ b/doc_src/cd.txt @@ -14,6 +14,7 @@ If `DIRECTORY` is a relative path, the paths found in the `CDPATH` environment v Note that the shell will attempt to change directory without requiring `cd` if the name of a directory is provided (starting with `.`, `/` or `~`, or ending with `/`). +Fish also ships a wrapper function around `cd` that understands `cd -` as changing to the previous directory. See `prevd`. \subsection cd-example Examples -- cgit v1.2.3