summaryrefslogtreecommitdiff
path: root/Doc/help/pushd
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2020-02-16 03:29:19 +0100
committerAxel Beckert <abe@deuxchevaux.org>2020-02-16 03:29:19 +0100
commit2794556a41b50f635b6aa49c32fc6ca7bc08c901 (patch)
tree9557d7a073d4b24e9f10cdc337d9a819eb65ad1a /Doc/help/pushd
parentb0d5cb56971618762ab13dbdb8fb17753f07f0f6 (diff)
parent94c033d2e281eb1f49e8366d21fc259ce8c0c4f5 (diff)
downloadzsh-2794556a41b50f635b6aa49c32fc6ca7bc08c901.tar.gz
zsh-2794556a41b50f635b6aa49c32fc6ca7bc08c901.zip
Update upstream source from tag 'upstream/5.8'
Update to upstream version '5.8' with Debian dir b7a9cb7b782a12a49dca06e06ca2554b5a95bf93
Diffstat (limited to 'Doc/help/pushd')
-rw-r--r--Doc/help/pushd31
1 files changed, 31 insertions, 0 deletions
diff --git a/Doc/help/pushd b/Doc/help/pushd
new file mode 100644
index 000000000..7365532ae
--- /dev/null
+++ b/Doc/help/pushd
@@ -0,0 +1,31 @@
+pushd [ -qsLP ] [ arg ]
+pushd [ -qsLP ] old new
+pushd [ -qsLP ] {+|-}n
+ Change the current directory, and push the old current directory
+ onto the directory stack. In the first form, change the current
+ directory to arg. If arg is not specified, change to the second
+ directory on the stack (that is, exchange the top two entries),
+ or change to $HOME if the PUSHD_TO_HOME option is set or if
+ there is only one entry on the stack. Otherwise, arg is inter-
+ preted as it would be by cd. The meaning of old and new in the
+ second form is also the same as for cd.
+
+ The third form of pushd changes directory by rotating the direc-
+ tory list. An argument of the form `+n' identifies a stack en-
+ try by counting from the left of the list shown by the dirs com-
+ mand, starting with zero. An argument of the form `-n' counts
+ from the right. If the PUSHD_MINUS option is set, the meanings
+ of `+' and `-' in this context are swapped.
+
+ If the -q (quiet) option is specified, the hook function chpwd
+ and the functions in the array $chpwd_functions are not called,
+ and the new directory stack is not printed. This is useful for
+ calls to pushd that do not change the environment seen by an in-
+ teractive user.
+
+ If the option -q is not specified and the shell option
+ PUSHD_SILENT is not set, the directory stack will be printed af-
+ ter a pushd is performed.
+
+ The options -s, -L and -P have the same meanings as for the cd
+ builtin.