atuin / tmpdir
tag:

Tmpdir

Generate a temporary directory, and cd into it. This is useful for getting a clean workspace to build software

 

Script
Script 1
zsh
mktemp -d

 

Set the value of PWD to be tmpdir. This requires that the calling runbook uses the cwd of the subrunbook - enable in settings.

 

{{var.tmpdir}}

 

Terminal
Terminal 1
pwd