Skip to main content

PWDHIST (json)

Laurence MorganLess than 1 minute

PWDHIST (json)

History of each change to the sessions working directory

Description

PWDHIST is a JSON array containing the history of all the working directories within the current shell session.

It is updated via cd however you can overwrite its value manually via set.

Examples

» cd ~bob
» cd /tmp
» $PWDHIST
[
    "/Users/bob",
    "/private/tmp"
]

Synonyms

  • pwdhist
  • PWDHIST

See Also


This document was generated from gen/variables/PWDHIST_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan