alexilyaev / alexilyaev/runrun-cli

Consider adding executed commands to shell history

未关闭
#16 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
16
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。