github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/docs/variables/pwdhist.md (about) 1 # `PWDHIST` (json) 2 3 > History of each change to the sessions working directory 4 5 ## Description 6 7 `PWDHIST` is a JSON array containing the history of all the working directories 8 within the current shell session. 9 10 It is updated via `cd` however you can overwrite its value manually via `set`. 11 12 13 14 ## Examples 15 16 ``` 17 » cd ~bob 18 » cd /tmp 19 » $PWDHIST 20 [ 21 "/Users/bob", 22 "/private/tmp" 23 ] 24 ``` 25 26 ## Synonyms 27 28 * `pwdhist` 29 * `PWDHIST` 30 31 32 ## See Also 33 34 * [Array (`@`) Token](../parser/array.md): 35 Expand values as an array 36 * [Modules and Packages](../user-guide/modules.md): 37 An introduction to Murex modules and packages 38 * [Pipeline](../user-guide/pipeline.md): 39 Overview of what a "pipeline" is 40 * [Reserved Variables](../user-guide/reserved-vars.md): 41 Special variables reserved by Murex 42 * [Variable and Config Scoping](../user-guide/scoping.md): 43 How scoping works within Murex 44 * [`PWD` (path)](../variables/pwd.md): 45 Current working directory 46 * [`cd`](../commands/cd.md): 47 Change (working) directory 48 * [`json`](../types/json.md): 49 JavaScript Object Notation (JSON) 50 * [`path`](../types/path.md): 51 Structured object for working with file and directory paths 52 * [`set`](../commands/set.md): 53 Define a local variable and set it's value 54 * [`string` (stringing)](../types/str.md): 55 string (primitive) 56 57 <hr/> 58 59 This document was generated from [gen/variables/PWDHIST_doc.yaml](https://github.com/lmorg/murex/blob/master/gen/variables/PWDHIST_doc.yaml).