alexilyaev / alexilyaev/runrun-cli

Consider adding executed commands to shell history

Open
#16 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
16
Forks
0
PR merge metrics
No merged PRs in 30d

Description

First mentioned in https://github.com/alexilyaev/runrun-cli/issues/8
Then recently requested again by @julienben

I didn't want to pursue this path due to he complexity of finding the relevant history file for each shell and supporting different history formats and OS's.
But maybe we could satisfy most users using existing utils:
https://github.com/sindresorhus/shell-history

Relevant environment variables:
- `SHELL` - Current used shell (e.g. `bash`, `zsh`)
- `HISTFILE` - Path to history file (ref http://tldp.org/LDP/abs/html/histcommands.html)

Known history file locations:
- `$HOME/.bash_history`
- `$HOME/.zsh_history`
- `$HOME/.zhistory` (legacy or Oh My Zsh variant or something)
- fish - https://github.com/fish-shell/fish-shell/issues/862

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.