alexilyaev / alexilyaev/runrun-cli

Consider adding executed commands to shell history

オープン
#16 コメント 0 件 リアクション 2 件 担当者 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 を短くまとめたダイジェスト。