8000 Add environment variable to change REPL history file path · Issue #18010 · denoland/deno · GitHub
[go: up one dir, main page]

Skip to content 8000
Add environment variable to change REPL history file path #18010
@njhanley

Description

@njhanley

A fairly common practice with REPL interfaces is to allow the location of the history file to be changed with an environment variable. This allows users to put their history in tmpfs to be cleared on shutdown or disable saving between sessions entirely by pointing towards /dev/null or an empty path. This kind of configuration is particularly useful when experimenting with API tokens or other secrets interactively, where ideally they should never touch the disk. I suggest adding an environment variable named DENO_REPL_HISTORY (based on Node's own feature) or similar to specify a custom history file path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    replrelated to the Read-Eval-Print-Loop functionality of Denosuggestionsuggestions for new features (yet to be agreed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0