todaydir               [ Home ](https://davidharting.com) [ Notes ](https://davidharting.com/notes) [ Media Log ](https://davidharting.com/media) [ Pages ](https://davidharting.com/pages)  [ Login ](https://davidharting.com/login) 

 2026 June 5

todaydir
========

A bash function for my agents and I to stash one-off notes

  I've been using this bash function for a few weeks:

```bash
function todaydir {
    local dir="$HOME/repos/control-room/scratch/days/$(date +%Y-%m-%d)"
    mkdir -p "$dir"
    echo "$dir"
}

```

*(See [dotfiles](https://github.com/davidharting/dotfiles/blob/940f69725cf2cb116f3103c5a2183ad8e9f8d212/zsh/.zshrc#L35-L39))*

It's been convenient to tell agents to "create a scratch md file in $(todaydir)". That way, as we need one-off files they end up somewhere I can easily find them that is more durable than tmp and not source controlled.

 [ Back to all notes ](https://davidharting.com/notes)
