File: popd

package info (click to toggle)
zsh 5.9-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,856 kB
  • sloc: ansic: 108,138; sh: 6,976; makefile: 722; perl: 687; awk: 291; sed: 16
file content (14 lines) | stat: -rw-r--r-- 818 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
popd [ -q ] [ {+|-}n ]
       Remove an entry from the directory stack, and perform  a  cd  to
       the  new top directory.  With no argument, the current top entry
       is removed.  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 popd that do not change the environment seen by an in-
       teractive user.