Explorar o código

Added the dirs command

Fix build & Add definition of stack

Added reference to pushd/popd in description
Starbeamrainbowlabs %!s(int64=9) %!d(string=hai) anos
pai
achega
a76141742f
Modificáronse 1 ficheiros con 20 adicións e 0 borrados
  1. 20 0
      pages/common/dirs.md

+ 20 - 0
pages/common/dirs.md

@@ -0,0 +1,20 @@
+# dirs
+
+> Displays or manipulates the directory stack.
+> The directory stack is a list of recently visited directories that can be manipulated with the `pushd` and `popd` commands.
+
+- Display the directory stack with a space between each entry:
+
+`dirs`
+
+- Display the directory stack with one entry per line:
+
+`dirs -p`
+
+- Display only the nth entry in the directory stack, starting at 0:
+
+`dirs +{{N}}`
+
+- Clear the directory stack:
+
+`dirs -c`