PWDHIST (json)
Less than 1 minuteSpecial VariablesEnvironmental Variables
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"
]
See Also
- Change Directory (
cd
): Change (working) directory - Define Variable (
set
): Define a variable (typically local) and set it's value - Modules And Packages: Modules and packages: An Introduction
- Pipeline: Overview of what a "pipeline" is
- Reserved Variables: Special variables reserved by Murex
- Variable And Config Scoping: How scoping works within Murex
@Array
Sigil: Expand values as an arrayOLDPWD
(path): Return the home directory for the current session userPWD
(path): Current working directoryjson
: JavaScript Object Notation (JSON)path
: Structured object for working with file and directory paths
This document was generated from gen/variables/PWDHIST_doc.yaml.